C4 Engine
C4 Engine API Documentation

Method::SetMethodResult

Defined in:  C4Methods.h
Sets the boolean result for a method.
Prototype

void SetMethodResult(bool result);

Parameters
result The boolean result.
Description
The SetMethodResult function sets the boolean result for a method. This function should be called from within the overridden Method::ExecuteMethod function for script methods that need to specify a boolean result. If the SetMethodResult function is not called, then the boolean result for a method is true by default.

If the Method::SetOutputValue function is called, then the boolean result is automatically set by converting the output value to a boolean value. To specify a boolean result independently, call the SetMethodResult function after calling the SetOutputValue function.
See Also

Method::SetOutputValue

Method::ExecuteMethod