unitAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ")
m (Text replacement - " | }}" to " }}")
Line 18: Line 18:


| [[activateAddons]]
| [[activateAddons]]
|
}}
}}



Revision as of 17:49, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Mods and Addons

Syntax

Syntax:
Syntax needed
Parameters:
className: String - class name of a unit/vehicle or object
Return Value:
Return value needed

Examples

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

Additional Information

See also:
See also needed

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
Posted on Mar 31, 2014 - 23:38
ffur2007slx2_5
1. From A3 1.14 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"