C4 Engine
C4 Engine API Documentation

Method::GetTargetNode

Defined in:  C4Methods.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::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

ScriptState