unitAddons

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Returns list with addons the unit belongs to.

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

Multiplayer:
-
See also:
activateAddons

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on Mar 31, 2014 - 23:38
ffur2007slx2_5
1. (A3 1.14) Old BIS function BIS_fnc_unitAddon has been deprecated, please always use unitAddons instead. hint str ([player] call BIS_fnc_unitAddon) // same as unitAddons (typeOf player) 2. To return the addon that a weapon belongs to, use BIS_fnc_weaponAddon instead. E.g. ((primaryWeapon player) call BIS_fnc_weaponAddon); //return: "A3_Weapons_F_Rifles_Khaybar"

Bottom Section