Difference between revisions of "VN fnc whitelisted arsenal loadInventory"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |e=" to " |a= |e=") |
Lou Montana (talk | contribs) (Page filling) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{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= | + | |d= Adds loadout to character while also listing objects that have been skipped. |
− | |||
− | |||
− | |||
− | + | |s= [crate, settings, allowedItems] 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> | + | |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 |
|
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;