BIS fnc inv: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2 | | | arma2 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns inventory contents of given vehicle (unit). For vehicles it returns mounted gun and its ammo, '''not''' cargo weapons and ammo. |Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [unit] call [[BIS_fnc_inv]] |Syntax= | ||
|p1= | | |p1= unit: [[Object]] - unit or vehicle |Parameter 1= | ||
| | | | [[Array]] of [[Config]] - weapons then magazines |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code><nowiki>[</nowiki>[[player]]] [[call]] [[BIS_fnc_inv]];</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[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:{{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
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