C4 Engine
C4 Engine API Documentation

Method::ResumeMethod

Defined in:  C4Methods.h
Resumes a script method after a saved game is loaded.
Prototype

virtual void ResumeMethod(const ScriptState *state);

Parameters
state The current script state.
Description
The ResumeMethod function is called by the script controller after a saved game is loaded if the method was executing at the time that the game was saved. The override of this function should perform whatever actions are necessary to resume the execution of the method from the state that it was in when the method was previously saved.

It is only necessary to implement the ResumeMethod function for methods that take time to execute. If a method completes execution within the Method::ExecuteMethod function, then it can never be in the executing state when a game is saved.
See Also

Method::ExecuteMethod

ScriptState