Difference between revisions of "VN fnc whitelisted arsenal loadInventory"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Page filling)
 
Line 1: Line 1:
[[Category:TODO]][[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Ethan Johnson
 
|author= Ethan Johnson
  
|a=
+
|a= local
  
|e=
+
|e= global
  
 
|g1= whitelisted_arsenal_functions
 
|g1= whitelisted_arsenal_functions
  
|d= <pre>/*
+
|d= Adds loadout to character while also listing objects that have been skipped.
        FILE: fn_whitelisted_arsenal_loadinventory.sqf
 
        DATE: 10-06-2019
 
        AUTHOR: Ethan Johnson
 
  
        DESCRIPTION:
+
|s= [crate, settings, allowedItems] call [[VN_fnc_whitelisted_arsenal_loadInventory]]
                Adds loadout to character while also listing objects that have been skipped.
 
        PARAMETERS:
 
                (0): OBJECT - Object that will have the items added to it.
 
                (0): ARRAY - Settings that are used to get the inventory.
 
                (0): ARRAY - Array of allowed items that will be checked against to confirm loadouts.
 
        RETURNS:
 
                STRING
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_whitelisted_arsenal_loadinventory]]
+
|p1n= crate
 
+
|p1t= object
|p1n=
+
|p1d= object that will have the items added to it
|p1t=
 
|p1d=
 
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= settings
|p2t=
+
|p2t= array
|p2d=
+
|p2d= format [namespace, loadoutName] - settings that are used to get the inventory
 
|p2v=
 
|p2v=
  
|r1t=
+
|p3n= allowedItems
 +
|p3t= array
 +
|p3d= list of whitelisted items
 +
|p3v=
 +
 
 +
|r1t= string
 
|r1d=
 
|r1d=
  
|x1= <code>-</code>
+
|x1= <code>[sogCrate, [missionNamespace, "Rifleman"], []] call [[VN_fnc_whitelisted_arsenal_loadInventory]];</code>
 
}}
 
}}

Latest revision as of 20:11, 26 February 2021

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

Description

Adds loadout to character while also listing objects that have been skipped.

Syntax

Syntax
[crate, settings, allowedItems] call VN_fnc_whitelisted_arsenal_loadInventory
Parameters
crate: Object - object that will have the items added to it
settings: Array - format [namespace, loadoutName] - settings that are used to get the inventory
allowedItems: Array - list of whitelisted items
Return value
String

Examples

Example 1
[sogCrate, [missionNamespace, "Rifleman"], []] call VN_fnc_whitelisted_arsenal_loadInventory;