Description
Compile scripts and save them into globally available functions. Defines _fnc_scriptName variable.
Syntax
[fileDirectory, prefix, nameVars, global] call BIS_fnc_loadFunctions
Parameters:
-
fileDirectory: String - script path -
prefix: String - variable prefixNote
"BIS_fnc_"prefix is reserved and cannot be used. -
nameVars: Array of Strings or Array of Array - list of variables to be declared. -
global: Boolean - true for global persistent execution on all clients
Returns: 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;