Difference between revisions of "VN ms fnc respawn saveLoadout"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "[[vn_" to "[[VN_")
(Page filling)
 
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Wyqer, veteran29
 
|author= Wyqer, veteran29
  
|a=
+
|a= local
  
|e=
+
|e= global
  
 
|g1= respawn
 
|g1= respawn
  
|d= <pre>/*
+
|d= Saves respawn loadout and makes it persistent.
    Author: Wyqer, veteran29
 
    Date: 2019-07-08
 
  
    Description:
+
|s= [unit, debugHint] call [[VN_ms_fnc_respawn_saveLoadout]]
        Saves respawn loadout and makes it persistent.
 
  
    Parameter(s):
+
|p1n= unit
        _unit - Unit to save lodout for [OBJECT, defaults to player]
+
|p1t= object
        _hint - Should hint about loadout being saved be shown [BOOL, defaults to true]
+
|p1d= unit to save loadout
 +
|p1v= {{Biki|player}}
  
    Returns:
+
|p2n= debugHint
        Function reached the end [BOOL]
+
|p2t= boolean
*/
+
|p2d= debug hint about loadout being saved
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
+
|p2v= true
  
|s= [] call [[VN_ms_fnc_respawn_saveLoadout]]
+
|r1t= boolean
 +
|r1d= function's success
  
|p1n=
+
|x1= <code>[player, false] call [[VN_ms_fnc_respawn_saveLoadout]];</code>
|p1t=
 
|p1d=
 
|p1v=
 
 
 
|p2n=
 
|p2t=
 
|p2d=
 
|p2v=
 
 
 
|r1t=
 
|r1d=
 
 
 
|x1= <code>-</code>
 
 
}}
 
}}

Latest revision as of 22:15, 25 February 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): local
Effect(s): global

Description

Saves respawn loadout and makes it persistent.

Syntax

Syntax
[unit, debugHint] call VN_ms_fnc_respawn_saveLoadout
Parameters
unit: Object - (Optional, default player) unit to save loadout
debugHint: Boolean - (Optional, default true) debug hint about loadout being saved
Return value
Boolean - function's success

Examples

Example 1
[player, false] call VN_ms_fnc_respawn_saveLoadout;