This AI is still in early stages of development.
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
Mission.finish( success );
Boolean
Constant
Defines whether the mission is successful or not.
Specify either a boolean or one of the following constants:
Mission.SUCCESSFUL
true
Mission.FAILED
false
Does not return anything
You can also finish a mission by setting the Mission.status parameter to the desired success value.
When the mission finishes, Mission.onFinish() will be triggered.
// ways to finish a mission successfully Mission.finish( Mission.SUCCESSFUL ); Mission.finish( true ); Mission.status = Mission.SUCCESSFUL; // ways to finish a mission as failed Mission.finish( Mission.FAILED ); Mission.finish( false ); Mission.status = Mission.FAILED;
Requires:
Jump to:
Related articles: