getCinematicCaptions
Client
Returns the cinematic's captions.
table|false getCinematicCaptions(cinematic cinematic)
Parameters
| Name | Type | Description |
|---|---|---|
| cinematic | cinematic | The cinematic. |
Returns
The list of captions in the format setCinematicCaptions takes, or false if the element is not a cinematic. Each font comes as @resource/path.
Example
local intro = createCinematic("cinematics/intro.cine")
for _, caption in ipairs(getCinematicCaptions(intro)) do
outputDebugString(("%d ms: %s"):format(caption.time, caption.text))
end