C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

Method::GetTargetNode

Defined in:  C4Scripts.h
Returns the target node for a method.
Prototype

Node *GetTargetNode(const ScriptState *state) const;

Parameters
state The current script state.
Description
The GetTargetNode function can be called by a method class to retrieve a pointer to the target node for the method. This function is normally called from within an override of the Method::Execute function. The return value can be nullptr, and in such a case, the method should generally skip any actions it would have performed on the target node.
See Also
ScriptState