BIS fnc getVirtualWeaponCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(page filling)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
|Get virtual weapons to an object. Virtual items can be selected in the '''Arsenal'''. An object with full '''Arsenal''' will return '''["%1"]''' visit [[Arsenal]] for more information.|= Description
____________________________________________________________________________________________


Description:
| object [[call]] '''BIS_fnc_getVirtualWeaponCargo''' |= Syntax
Get virtual weapons to an object (e.g., ammo box).
Virtual items can be selected in the Arsenal.


Parameter(s):
|p1= object: [[Object]] - Object with [[Arsenal|Virtual Arsenal]] |= Parameter 1
0: OBJECT


Returns:
| [[Array]] of [[String|strings]] - Virtual items that are available |= Return value
ARRAY of ARRAYs - all virtual items within the object's space in format [<items>,<weapons>,<magazines>,<backpacks>]
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_getVirtualWeaponCargo]]; --> |= Syntax
|x1= <code>_items = [[player]] [[call]] '''BIS_fnc_getVirtualWeaponCargo''';</code> |= example1
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|exec= call |= Execution By
____________________________________________________________________________________________


| |= See also
|[[Arsenal]]|= See also


}}
}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 19:10, 2 May 2018


Hover & click on the images for description

Description

Description:
Get virtual weapons to an object. Virtual items can be selected in the Arsenal. An object with full Arsenal will return ["%1"] visit Arsenal for more information.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
object call BIS_fnc_getVirtualWeaponCargo
Parameters:
object: Object - Object with Virtual Arsenal
Return Value:
Array of strings - Virtual items that are available

Examples

Example 1:
_items = player call BIS_fnc_getVirtualWeaponCargo;

Additional Information

See also:
Arsenal

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