BIS fnc unitAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects(...)
Line 1: Line 1:
{{Function|Comments=
{{Function| arma3|1.00|gr1= Configs| Return addon from CfgPatches to which a given object belongs to.| [object] call [[BIS_fnc_unitAddon]]|p1= object: [[Object]] - Object whose addon should be returned| [[String]] - Addon class|x1= <code>[ [[player]] ] [[call]] [[BIS_fnc_unitAddon]];</code>
 
| arma3 |Game name=
 
|1.00|Game version=
 
|gr1= Configs |GROUP1=
 
| Return addon from CfgPatches to which a given object belongs to.|DESCRIPTION=
 
| [object] call [[BIS_fnc_unitAddon]] |SYNTAX=
 
|p1= object: [[Object]] - Object whose addon should be returned |PARAMETER1=
 
| [[String]] - Addon class |RETURNVALUE=
 
|x1= <code>[ [[player]] ] [[call]] [[BIS_fnc_unitAddon]];</code>


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

Revision as of 10:57, 18 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