BIS fnc unitAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |s1=[" to " |s1= [")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *O([a-z])" to "$1 - o$2")
Line 10: Line 10:
|s1= [object] call [[BIS_fnc_unitAddon]]
|s1= [object] call [[BIS_fnc_unitAddon]]


|p1= object: [[Object]] - Object whose addon should be returned
|p1= object: [[Object]] - object whose addon should be returned


|r1= [[String]] - addon class
|r1= [[String]] - addon class

Revision as of 15:42, 8 November 2023

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