CutsceneCmdActivate

From Headbone Creative
Jump to: navigation, search

This will turn an object off or on. If watchTarget is enabled, it will wait for the object to turn itself off before reporting it is complete; otherwise it will report it is complete immediately after being started.

Contents

Public Variables

target : GameObject

This is the object whose active status is toggled. It must be assigned in the editor.

changeStateOnStart : bool

This tells the class whether or not to change the active flag of the target object when OnCutsceneStart is called.

stateOnStart : bool

This is what the state of the object should be if changeStateOnStart is set to true.

changeStateOnReset : bool

This tells the class whether or not to change the active flag of the target object when OnCutsceneReset is called.

stateOnReset : bool

This is what the state of the object should be if changeStateOnReset is set to true.

changeStateOnFinished : bool

This tells the class whether or not to change the active flag of the target object when OnCutsceneFinished is called.

stateOnFinished : bool

This is what the state of the object should be if changeStateOnFinished is set to true.

watchTarget : bool

If this is set to true, the script will not report it's complete until the target object deactivates itself.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox