unitAddons: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "") |
||
Line 21: | Line 21: | ||
<dl class='command_description'> | <dl class='command_description'> | ||
<dd class="notedate">Posted on Mar 31, 2014 - 23:38</dd> | <dd class="notedate">Posted on Mar 31, 2014 - 23:38</dd> | ||
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note"> | <dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note"> | ||
Line 28: | Line 27: | ||
2. To return the addon that a weapon belongs to, use [[BIS_fnc_weaponAddon]] instead. E.g. | 2. To return the addon that a weapon belongs to, use [[BIS_fnc_weaponAddon]] instead. E.g. | ||
<code>(([[primaryWeapon]] [[player]]) [[call]] [[BIS_fnc_weaponAddon]]); //return: "A3_Weapons_F_Rifles_Khaybar"</code> | <code>(([[primaryWeapon]] [[player]]) [[call]] [[BIS_fnc_weaponAddon]]); //return: "A3_Weapons_F_Rifles_Khaybar"</code> | ||
</dl> | </dl> |
Revision as of 00:42, 6 April 2021
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:
- 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
- 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"