BIS fnc endMission: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(see also)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Ends mission with a fade effect.<br>
| Ends mission with a fade effect. See [[Debriefing]] for more information.<br>
{{Feature arma3|This should always be used instead of the simple end1-end_n endings one can set on trigger activation.<br>Otherwise singleplayer scenarios will not properly be marked as played/ ended in Arma 3 and on Steam!}}|= Description
{{Feature arma3|This should always be used instead of the simple end1-end_n endings one can set on trigger activation.<br>Otherwise singleplayer scenarios will not properly be marked as played/ ended in Arma 3 and on Steam!}}|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 29: Line 29:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Debriefing]] |= See also
| [[BIS_fnc_endMissionServer]], [[Debriefing]] |= See also


}}
}}

Revision as of 23:23, 19 October 2016

Hover & click on the images for description

Description

Description:
Ends mission with a fade effect. See Debriefing for more information.
Arma 3
This should always be used instead of the simple end1-end_n endings one can set on trigger activation.
Otherwise singleplayer scenarios will not properly be marked as played/ ended in Arma 3 and on Steam!
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[endName,isVictory,fadeType,playMusic,completeTasks] spawn BIS_fnc_endMission;
Parameters:
endName (Optional):
String - end type, as used in endMission command (default: "end1")
Array - in format [endName,ID], will be composed to "endName_ID" string
isVictory (Optional): Boolean - true to successful end, false for failed end (default: true)
fadeType (Optional): Boolean or Number - true for signature closing shot. When number, simple fade to black of given duration is used.
playMusic (Optional): Boolean - false to disable automatic music during closing shot. (default: true)
completeTasks (Optional): Boolean - true to cancel all pending tasks. (default: false)
Return Value:
Boolean

Examples

Example 1:
"end1" call BIS_fnc_endMission;
Example 2:
["epicFail",false,2] call BIS_fnc_endMission;

Additional Information

See also:
BIS_fnc_endMissionServerDebriefing

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on March 21, 2016 - 11:12 (UTC)
Revo
To end a mission properly on a server, use BIS_fnc_endMissionServer instead