User Tools

Site Tools


modding:function:msnfailure

Discuss this page on this pages TalkPage

msnFailure

Syntax (msnFailure missionObj [data])
Arguments missionObj: the mission object
data: arbitrary data to pass on to the mission, which is passed on as gData in the <OnCompleted> event.
Returns
Category missions
Description Fails the mission and calls the <OnCanDebrief> and <OnCompleted> events on the mission object.

Example

(msnFailure gSource)

Calls the <OnCompleted> and <OnCanDebrief> event on the mission object, with “failure” as the reason.

Mission Types

Return to Mission functions list

Return to Functions list

modding/function/msnfailure.txt · Last modified: 2017/01/31 02:16 by xephyr