items: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (format)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''items''' unit |= Syntax
| [[items]] unit |= Syntax


|p1= unit: [[Object]] - |= PARAMETER1  
|p1= unit: [[Object]]  |= PARAMETER1  
 
|p2= |= PARAMETER2
 
|p3= |= PARAMETER3


| [[Array]] |= RETURNVALUE  
| [[Array]] |= RETURNVALUE  




|x1= <code>_itemsplayer <nowiki>=</nowiki> '''items''' player; </code>|= EXAMPLE1  
|x1= <code>_itemsplayer <nowiki>=</nowiki> [[items]] [[player]]; </code>|= EXAMPLE1  


|x2= <code>player sideChat format["%1", items player];</code>|= EXAMPLE2  
|x2= <code>[[player]] [[sideChat]] [[format]] ["%1", [[items]] [[player]] ];</code>|= EXAMPLE2  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 16:17, 13 September 2014

Hover & click on the images for description

Description

Description:
Returns an array of names of all special items of a vehicle or a soldier.
Groups:
Uncategorised

Syntax

Syntax:
items unit
Parameters:
unit: Object
Return Value:
Array

Examples

Example 1:
_itemsplayer = items player;
Example 2:
player sideChat format ["%1", items player ];

Additional Information

See also:
assignedItemsprimaryWeaponItemssecondaryWeaponItems

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

Posted on June 18, 2013 - 14:20
Druid
Arma 3, version 0.70 - magazines, explosives, grenades and all items currently linked on the unit are not returned now.

Bottom Section