C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

class ScriptState

Defined in:  C4Scripts.h
The ScriptState class represents the state of a running script.
Definition

class ScriptState : public ListElement<ScriptState>, public Packable, public Memory<ScriptState>

Member Functions
ScriptState::GetTriggerNode Returns the trigger node for a script.
ScriptState::GetActivatorNode Returns the activator node for a script.
ScriptState::GetScriptTime Returns the time elapsed since a script began running.
ScriptState::GetValue Returns a script variable.
Constructor

ScriptState();

Description
The ScriptState class represents the current state of a running script. A ScriptState object is passed to the Method::Execute and Method::Resume functions so that the implementations of those functions can pass them to other functions that require the script state.
Base Classes
ListElement<ScriptState> Used internally by a script.
Packable Script state can be packed for storage in resources.
Memory<ScriptState> Script state objects are stored in a dedicated heap.
See Also

Method::Execute

Method::Resume