unitAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(arma version needs to be corrected by a dev)
 
mNo edit summary
Line 17: Line 17:




|x1= <code>[[hint]] [[str]] [[unitAddons]] [[typeof]] [[player]]; //["A3_Characters_F_BLUFOR"]</code>|= EXAMPLE1  
|x1= <code>[[hint]] [[str]] [[unitAddons]] [[typeOf]] [[player]]; //["A3_Characters_F_BLUFOR"]</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 21:01, 18 September 2013

Hover & click on the images for description

Description

Description:
Returns list with addons the unit belongs to.
Groups:
Uncategorised

Syntax

Syntax:
unitAddons className
Parameters:
className: String - class name of a unit/vehicle or object
Return Value:
Array - addon names

Examples

Example 1:
hint str unitAddons typeOf player; //["A3_Characters_F_BLUFOR"]

Additional Information

See also:
activateAddons

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