BIS fnc addRespawnInventory: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |0.74|= Game version |eff= global |= __...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 5: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
|0.74|= Game version
 
|eff= global |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Add a respawn inventory for [[Arma 3 Respawn#MenuInventory|respawn menu]].
 
Description:
Add a respawn loadout
 
Parameter(s):
0:
NAMESPACE
SIDE
GROUP
OBJECT
1: STRING - CfgRespawnInventory or CfgVehicles class


Returns:
Available loadouts are defined in ''CfgRespawnInventory'' in [[Description.ext]].
ARRAY in format [target,id] (used in BIS_fnc_removeRespawnInventory)
|= Description
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_addRespawnInventory]]; --> |= Syntax
| [<target>,<inventory>] spawn BIS_fnc_addRespawnInventory; |= Syntax


|p1= |= Parameter 1
|p1= '''target''': Receiver of the respawn loadout
: [[Namespace]] - use [[missionNamespace]] to add the loadout to everyone
: [[Side]]
: [[Group]]
: [[Object]]|=
|p2= '''inventory''': [[String]] - ''CfgRespawnInventory'' class


| |= Return value
| [[Array]] in format [target,id] (used in [[BIS_fnc_removeRespawnInventory]]) |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
|x1= <code><nowiki>[</nowiki>[[west]], "WEST1"] call BIS_fnc_addRespawnInventory;</code> |=


|x1= <code></code> |=  
|x2= <code><nowiki>[</nowiki>[[missionNamespace]],"ATSniper"] call BIS_fnc_addRespawnInventory;</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[Arma 3 Respawn]] |= See also


}}
}}
Line 50: Line 44:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Respawn|{{uc:addRespawnInventory}}]]
 
[[Category:Functions|{{uc:addRespawnInventory}}]]
[[Category:Arma 3:_Functions|addRespawnInventory]]
[[Category:{{Name|arma3}}: Functions|{{uc:addRespawnInventory}}]]

Revision as of 08:35, 31 July 2013

Hover & click on the images for description

Description

Description:
Add a respawn inventory for respawn menu. Available loadouts are defined in CfgRespawnInventory in Description.ext.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[<target>,<inventory>] spawn BIS_fnc_addRespawnInventory;
Parameters:
target: Receiver of the respawn loadout
Namespace - use missionNamespace to add the loadout to everyone
Side
Group
Object
inventory: String - CfgRespawnInventory class
Return Value:
Array in format [target,id] (used in BIS_fnc_removeRespawnInventory)

Examples

Example 1:
[west, "WEST1"] call BIS_fnc_addRespawnInventory;
Example 2:
[missionNamespace,"ATSniper"] call BIS_fnc_addRespawnInventory;

Additional Information

See also:
Arma 3 Respawn

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