C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

Method::Execute

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

virtual void Execute(const ScriptState *state);

Parameters
state The current script state.
Description
The Execute 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::CallCompletionProc 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::Resume

Method::Stop

Method::SetMethodResult

Method::SetOutputValue

ScriptState