BIS fnc unitAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Configs(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Configs |GROUP1=
|gr1= Configs |GROUP1=
____________________________________________________________________________________________


| Return addon from CfgPatches to which a given object belongs to.|DESCRIPTION=
| Return addon from CfgPatches to which a given object belongs to.|DESCRIPTION=
____________________________________________________________________________________________


| [object] call [[BIS_fnc_unitAddon]] |SYNTAX=
| [object] call [[BIS_fnc_unitAddon]] |SYNTAX=
____________________________________________________________________________________________


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


| [[String]] - Addon class |RETURNVALUE=
| [[String]] - Addon class |RETURNVALUE=
____________________________________________________________________________________________


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


| [[unitAddons]], [[activatedAddons]] |SEEALSO=
| [[unitAddons]], [[activatedAddons]] |SEEALSO=

Revision as of 01:09, 17 January 2021

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:
unitAddonsactivatedAddons

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

Notes

Bottom Section