Method::GetTargetNode
Defined in:
Returns the target node for a method.
C4Methods.h
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::ExecuteMethod
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