BIS fnc unitAddon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2")
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Configs


|1.00|= Game version
|descr= Return addon from CfgPatches to which a given object belongs to.
____________________________________________________________________________________________


| <pre>/*
|s1= [object] call [[BIS_fnc_unitAddon]]


Description:
|p1= object: [[Object]] - object whose addon should be returned
Return addon from CghPatches to which a given object belongs to
Parameter(s):
0: OBJECT
Returns:
STRING - addon class
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|r1= [[String]] - addon class
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_unitAddon]]; --> |= Syntax
|x1= <sqf>[player] call BIS_fnc_unitAddon;</sqf>
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[unitAddons]] [[activatedAddons]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Configs|{{uc:unitAddon}}]]
[[Category:Functions|{{uc:unitAddon}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:unitAddon}}]]

Latest revision as of 18: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