Difference between revisions of "VN fnc endMission"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Ethan Johnson |a= |e= |g1= vn_end_functions |d= <pre>End mission with either a fade to black or a cinematic outro.</pre> |s= [_endName,_win,_f...") |
m |
||
Line 25: | Line 25: | ||
|p3n=_fade | |p3n=_fade | ||
|p3t=BOOL/NUMBER | |p3t=BOOL/NUMBER | ||
− | |p3d=NUMBER to fade to black in X seconds, BOOL to do special outro. | + | |p3d=NUMBER to fade to black in X seconds (will not play music), BOOL to do special outro (with music if enabled). |
|p3v=true | |p3v=true | ||
Latest revision as of 22:36, 2 July 2024
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
End mission with either a fade to black or a cinematic outro.
Syntax
- Syntax
- [_endName,_win,_fade,_playMusic,_cancelTasks,_end_code] call VN_fnc_endMission;
- Parameters
- _endName: String - (Optional, default
"end1"
) CfgDebriefing class which is used as the mission ending template. - _win: Boolean - (Optional, default
true
) Win/Loss. - _fade: BOOL/NUMBER - (Optional, default
true
) NUMBER to fade to black in X seconds (will not play music), BOOL to do special outro (with music if enabled). - _playMusic: Boolean - (Optional, default
true
) BOOL to play music. - _cancelTasks: Boolean - (Optional, default
false
) BOOL to cancel tasks that haven't been completed. - _end_code: Code - (Optional, default
{true}
) CODE to call after splash, but before debriefing screen shows. - Return value
- Boolean - Function reached the end.
Examples
- Example 1
- ["end1"] call vn_fnc_endMission;