BIS fnc inv: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma2 |= Game name
| arma2 |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| Returns inventory contents of given vehicle (unit). For vehicles it returns mounted gun and its ammo, '''not''' cargo weapons and ammo. |Description=
/*
File: fn_inv.sqf
 
Description:
Returns inventory contents of given vehicle (unit).
Note: for vehicles it returns mounted gun and its ammo, not cargo weapons and ammo.
 
Parameter(s):
1: <object> vehicle or unit
Returns:
<array> weapons and magazines
*/
 
//putWeaponPool object
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_inv]]; --> |= Syntax
| [unit] call [[BIS_fnc_inv]] |Syntax=


|p1= |= Parameter 1
|p1= unit: [[Object]] - unit or vehicle |Parameter 1=


| |= Return value
| [[Array]] of [[Config]] - weapons then magazines |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code><nowiki>[</nowiki>[[player]]] [[call]] [[BIS_fnc_inv]];</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[BIS fnc invAdd]], [[BIS fnc invRemove]], [[BIS fnc invCodeToArray]], [[BIS fnc invString]], [[BIS fnc invSlots]], [[BIS fnc invSlotsEmpty]], [[BIS fnc invSlotType]]
 
|See also=
}}
}}


Line 51: Line 32:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:inv}}]]
[[Category:Function Group: Inventory|{{uc:inv}}]]
[[Category:Function Group: Inventory|{{uc:inv}}]]
[[Category:Functions|{{uc:inv}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:inv}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:inv}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:inv}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:inv}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:inv}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:inv}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:inv}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:inv}}]]

Revision as of 15:04, 29 May 2018

Hover & click on the images for description

Description

Description:
Returns inventory contents of given vehicle (unit). For vehicles it returns mounted gun and its ammo, not cargo weapons and ammo.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[unit] call BIS_fnc_inv
Parameters:
unit: Object - unit or vehicle
Return Value:
Array of Config - weapons then magazines

Examples

Example 1:
[player] call BIS_fnc_inv;

Additional Information

See also:
BIS fnc invAddBIS fnc invRemoveBIS fnc invCodeToArrayBIS fnc invStringBIS fnc invSlotsBIS fnc invSlotsEmptyBIS fnc invSlotType

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