Difference between revisions of "VN fnc endMissionServer"

From Savage Game Design Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
|d= <pre>Ends mission for all clients on multiplayer server.</pre>
 
|d= <pre>Ends mission for all clients on multiplayer server.</pre>
  
|s= [] call [[VN_fnc_endMissionServer]];
+
|s= [_endName,_win,_fade,_playMusic,_cancelTasks] call [[VN_fnc_endMissionServer]];
  
 
|p1n=_endName
 
|p1n=_endName
Line 24: Line 24:
  
 
|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, BOOL to do special outro.
 
|p3v=true
 
|p3v=true

Latest revision as of 01:42, 5 May 2022

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): n/a
Effect(s): unknown

Description

Ends mission for all clients on multiplayer server.

Syntax

Syntax
[_endName,_win,_fade,_playMusic,_cancelTasks] call VN_fnc_endMissionServer;
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, BOOL to do special outro.
_playMusic: Boolean - (Optional, default true) BOOL to play music.
_cancelTasks: Boolean - (Optional, default true) BOOL to cancel tasks that haven't been completed.
Return value
Boolean - Function reached the end

Examples

Example 1
["end1"] call vn_fnc_endMissionServer;