(info) This AI is still in early stages of development.

Mission.onFinish()

Triggered when a mission finishes...

 

Syntax

Mission.onFinish = function( success ) {
	// do stuff
}

Parameters

ParameterTypeMandatoryNotesAPI Version
success

Boolean

Constant

(tick)

Defines whether the mission is successful or not.:

  • Mission.SUCCESSFUL or true – Mission successful
  • Mission.FAILED or false – Mission failed
1.0

Return value

Return value not processed.

Notes

This event uses the Events API.

Example

Mission.onFinish( success ) {
	gameOverMessage( success );
}
Availability DEV

Requires:

Contents

Jump to:

See also

Related articles:

Â