C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

ScriptState::GetTriggerNode

Defined in:  C4Scripts.h
Returns the trigger node for a script.
Prototype

Node *GetTriggerNode(voidconst;

Description
The GetTriggerNode function returns the trigger node that was activated, causing the particular script instance represented by a ScriptState object to run. If the script was not started by a trigger node being activated, then there is no trigger node, and the return value is nullptr.

Note that if a particular method targets the trigger node, then it will be returned by the Method::GetTargetNode function.
See Also

ScriptState::GetActivatorNode

Method::GetTargetNode