BIS fnc activateAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "strings" to "Strings")
 
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma 3 |= Game name
|game1= arma3
|version1= 1.00


|1.00|= Game version
|gr1= Systems
____________________________________________________________________________________________


| Activate addons upon mission start. Doesn't work when the mission is already running.|DESCRIPTION=
|serverExec= server
____________________________________________________________________________________________


| [addons] call [[BIS_fnc_activateAddons]] |SYNTAX=
|descr= Activate addons upon mission start. Doesn't work when the mission is already running.
____________________________________________________________________________________________


|p1= addons: [[Array]] of [[String|strings]] - Addon classes from CfgPatches or object classes from CfgVehicles|= Parameter 1
|s1= [addons] call [[BIS_fnc_activateAddons]]
____________________________________________________________________________________________


| [[Array]] of [[String|strings]] - Activated addons|RETURNVALUE=
|p1= addons: [[Array]] of [[String]]s - addon classes from CfgPatches or object classes from CfgVehicles
____________________________________________________________________________________________


|x1= <code>["class_1","class_2"] [[call]] [[BIS_fnc_activateAddons]];</code> |=
|r1= [[Array]] of [[String]]s - activated addons
____________________________________________________________________________________________


| [[activateAddons]], [[unitAddons]], [[activatedAddons]] |SEEALSO=
|x1= <sqf>["class_1","class_2"] call BIS_fnc_activateAddons;</sqf>
 
|seealso= [[activateAddons]] [[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: Misc|{{uc:activateAddons}}]]
[[Category:Functions|{{uc:activateAddons}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:activateAddons}}]]

Latest revision as of 14:48, 8 November 2023

Hover & click on the images for description

Description

Description:
Activate addons upon mission start. Doesn't work when the mission is already running.
Execution:
call
Groups:
Systems

Syntax

Syntax:
[addons] call BIS_fnc_activateAddons
Parameters:
addons: Array of Strings - addon classes from CfgPatches or object classes from CfgVehicles
Return Value:
Array of Strings - activated addons

Examples

Example 1:
["class_1","class_2"] call BIS_fnc_activateAddons;

Additional Information

See also:
activateAddons 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