Description
This command is an alias for compile(Final) (prefixHeader + preprocessFileLineNumbers path). See description of preprocessFileLineNumbers for more details.
In addition, this command can also compile SQF Bytecode files, which can reduce compilation time. If both a .sqf file and .sqfc file are pressing in the the path, this command will automatically compile the .sqfc file.
Syntax
compileScript [path, final, prefixHeader]
Parameters:
path: String - path to script filefinal: Boolean - (Optional, default false) compile final, see compileFinalprefixHeader: String - (Optional, default "") value added at the beginning of the file
Returns: Code
Examples
Example 1
compileScript ["a3\props_f_enoch\military\equipment\scripts\meteo.sqf"];
// has the same functionality as
compile preprocessFileLineNumbers "a3\props_f_enoch\military\equipment\scripts\meteo.sqf";
See also
compile · compileFinal · preprocessFileLineNumbers · preprocessFile · call · spawn