C4 Engine
C4 Engine API Documentation

Method::ExecuteMethod

Defined in:  C4Methods.h
Executes a script method.
Prototype

virtual void ExecuteMethod(const ScriptState *state);

Parameters
state The current script state.
Description
The ExecuteMethod function is called by the script controller when it is time to execute a script method. The override of this function should perform whatever actions are necessary to execute the method and then call the Completable::HandleCompletion function to indicate that the method has finished executing.

A method subclass may call the Method::SetMethodResult function or the Method::SetOutputValue function to specify the output value of the method.
See Also

Method::ResumeMethod

Method::SetMethodResult

Method::SetOutputValue

ScriptState