BIS fnc unitAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>")
Line 14: Line 14:
|r1= [[String]] - addon class
|r1= [[String]] - addon class


|x1= <code>[ player ] [[call]] [[BIS_fnc_unitAddon]];</code>
|x1= <code>[ player ] call [[BIS_fnc_unitAddon]];</code>


|seealso= [[unitAddons]] [[activatedAddons]]
|seealso= [[unitAddons]] [[activatedAddons]]
}}
}}

Revision as of 22:38, 12 July 2022

Hover & click on the images for description

Description

Description:
Return addon from CfgPatches to which a given object belongs to.
Execution:
call
Groups:
Configs

Syntax

Syntax:
[object] call BIS_fnc_unitAddon
Parameters:
object: Object - Object whose addon should be returned
Return Value:
String - addon class

Examples

Example 1:
[ player ] call BIS_fnc_unitAddon;

Additional Information

See also:
unitAddons activatedAddons

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