BIS fnc unitAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2")
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=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>


| [[unitAddons]], [[activatedAddons]]
|game1= arma3
}}
|version1= 1.00
 
|gr1= Configs
 
|descr= Return addon from CfgPatches to which a given object belongs to.
 
|s1= [object] call [[BIS_fnc_unitAddon]]
 
|p1= object: [[Object]] - object whose addon should be returned


|r1= [[String]] - addon class


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


[[Category:{{Name|arma3}}: Functions|{{uc:unitAddon}}]]
|seealso= [[unitAddons]] [[activatedAddons]]
}}

Latest revision as of 17:27, 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