VN_fnc_endMission
VN_fnc_endMission
End mission with either a fade to black or a cinematic outro.
Syntax
[_endName,_win,_fade,_playMusic,_cancelTasks,_end_code] call VN_fnc_endMission;Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
_endName |
String | "end1" |
CfgDebriefing class which is used as the mission ending template. |
_win |
Boolean | true |
Win/Loss. |
_fade |
Boolean/Number | true |
NUMBER to fade to black in X seconds (will not play music), BOOL to do special outro (with music if enabled). |
_playMusic |
Boolean | true |
BOOL to play music. |
_cancelTasks |
Boolean | false |
BOOL to cancel tasks that haven’t been completed. |
_end_code |
Code | {true} |
CODE to call after splash, but before debriefing screen shows. |
Return value
Boolean - Function reached the end.
Examples
["end1"] call vn_fnc_endMission;