BIS fnc loadFunctions: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|gr1 = Debug |GROUP1=" to "|gr1 = Diagnostic |GROUP1=") |
m (Text replacement - "\[\[Category\:Function Group\: Variables(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 44: | Line 44: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:loadFunctions}}]] | [[Category:Functions|{{uc:loadFunctions}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:loadFunctions}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:loadFunctions}}]] |
Revision as of 12:51, 12 October 2020
Description
- Description:
- Compile scripts and save them into globally available functions. Defines _fnc_scriptName variable.
- Execution:
- call
- Groups:
- Diagnostic
Syntax
- Syntax:
- [fileDirectory, prefix, nameVars, global] call BIS_fnc_loadFunctions
- Parameters:
- fileDirectory: String - script path
- prefix: String - variable prefix
- nameVars: Array of Strings or Array of Array - list of variables to be declared.
- global: Boolean - true for global persistent execution on all clients
- Return Value:
- Boolean - true when done
Examples
- Example 1:
["scripts\myDir\", "MY_fnc_", ["script1", "script2"], true] call BIS_fnc_loadFunctions;
- Example 2:
["scripts\myDir\", "MY_fnc_", [["script1", "script1file"], ["script2", "script2file"]], false] call BIS_fnc_loadFunctions;
Additional Information
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