unitAddons: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(37 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Mods and Addons | ||
| Returns list with addons the unit belongs to. | |descr= Returns list with addons the unit belongs to. | ||
| | |s1= [[unitAddons]] className | ||
|p1= className: [[String]] - class name of a unit/vehicle or object | |p1= className: [[String]] - class name of a unit/vehicle or object | ||
| [[Array]] - addon names | |r1= [[Array]] - addon names | ||
|x1= <sqf>hint str unitAddons typeOf player; // ["A3_Characters_F_BLUFOR"]</sqf> | |||
| | |seealso= [[activateAddons]] | ||
}} | |||
{{Note | |||
|user= ffur2007slx2_5 | |||
| | |timestamp= 20140331233800 | ||
|text= <nowiki/> | |||
| | # From {{arma3}} 1.14 <sqf>hint str ([player] call BIS_fnc_unitAddon) // same as unitAddons (typeOf player)</sqf> | ||
# To return the addon that a weapon belongs to, use [[BIS_fnc_weaponAddon]] instead. E.g. <sqf>(primaryWeapon player call BIS_fnc_weaponAddon); // return: "A3_Weapons_F_Rifles_Khaybar"</sqf> | |||
}} | }} | ||
Latest revision as of 23:51, 13 May 2023
Description
- Description:
- Returns list with addons the unit belongs to.
- Groups:
- Mods and Addons
Syntax
- Syntax:
- unitAddons className
- Parameters:
- className: String - class name of a unit/vehicle or object
- Return Value:
- Array - addon names
Examples
- Example 1:
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 (UTC)
-
- From Arma 3 1.14
- To return the addon that a weapon belongs to, use BIS_fnc_weaponAddon instead. E.g.
- From Arma 3 1.14