removeCinematicActor
Client
Takes an actor, with its take, out of the cinematic.
bool removeCinematicActor(cinematic cinematic, string slot)
Parameters
| Name | Type | Description |
|---|---|---|
| cinematic | cinematic | The cinematic. |
| slot | string | The actor's name. |
Returns
true if it was removed. false if the actor does not exist, the cinematic is recording or something still refers to it, with a warning saying why.
An actor is not removed while a camera shot follows or looks at it, a sound is spoken by it or another actor gets into it (a vehicle) in its take.
Example
local intro = createCinematic("cinematics/intro.cine")
if not removeCinematicActor(intro, "extra") then
outputDebugString("the extra is still in a shot or a sound")
end