Arma 3 Scripting

Command in System

compileScript

Also available as Markdown and JSON, or read the original wiki page.

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:

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