vestItems: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
mNo edit summary
 
Line 12: Line 12:
|p1= unit: [[Object]]
|p1= unit: [[Object]]


|r1= [[Array]]
|r1= [[Array]] of [[String]]s - Class names of items


|x1= <sqf>
|x1= <sqf>

Latest revision as of 11:05, 1 January 2026

Hover & click on the images for description

Description

Description:
Get array with all items (of any kind, even weapons) from vest.
Groups:
Unit Inventory

Syntax

Syntax:
vestItems unit
Parameters:
unit: Object
Return Value:
Array of Strings - Class names of items

Examples

Example 1:
vestItems player; // returns e.g /* [ "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "HandGrenade", "HandGrenade", "SmokeShell", "SmokeShellGreen", "Chemlight_green", "Chemlight_green" ] */

Additional Information

See also:
uniformItems backpackItems

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note