BIS fnc activateAddons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "strings" to "Strings")
 
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Systems


|1.00|= Game version
|serverExec= server
____________________________________________________________________________________________


| <pre>/*
|descr= Activate addons upon mission start. Doesn't work when the mission is already running.


Description:
|s1= [addons] call [[BIS_fnc_activateAddons]]
Activate addons upon mission start.
Doesn't work when the mission is already running.


Parameter(s):
|p1= addons: [[Array]] of [[String]]s - addon classes from CfgPatches or object classes from CfgVehicles
0: ARRAY of STRINGs - addon clases from CfgPatches or object classes from CfgVehicles


Returns:
|r1= [[Array]] of [[String]]s - activated addons
ARRAY of STRINGS - activated addons
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x1= <sqf>["class_1","class_2"] call BIS_fnc_activateAddons;</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_activateAddons]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|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