compileScript: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
(Note about .sqfc)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
|version1= 2.02
|version1= 2.02


|descr= This command is an alias for {{ic|[[compile]](Final) (prefixHeader + [[preprocessFileLineNumbers]] path)}}. See description of [[preprocessFileLineNumbers]] for more details.<br>
|descr= This command is an alias for {{hl|[[compile]](Final) (prefixHeader + [[preprocessFileLineNumbers]] path)}}. See description of [[preprocessFileLineNumbers]] for more details.<br>
In addition, this command can also compile [[SQF Bytecode]] files, which can reduce compilation time.
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.


|gr1= System
|gr1= System

Latest revision as of 17:44, 26 July 2024

Hover & click on the images for description

Description

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.
Groups:
System

Syntax

Syntax:
compileScript [path, final, prefixHeader]
Parameters:
path: String - path to script file
final: Boolean - (Optional, default false) compile final, see compileFinal
prefixHeader: String - (Optional, default "") value added at the beginning of the file
Return Value:
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";

Additional Information

See also:
compile compileFinal preprocessFileLineNumbers preprocessFile call spawn

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