compileScript: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command |game1= arma3dev |version1= 2.01 |descr= {{WIP}} |pr= Known problems |gr1= System |s1= [[{{PAGENAMEE}}]] [path, final, prefixHeader] |p1= path: String - P...") |
(Note about .sqfc) |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
|game1= | |game1= arma3 | ||
|version1= 2.02 | |||
|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. If both a .sqf file and .sqfc file are pressing in the the path, this command will automatically compile the .sqfc file. | |||
|descr= {{ | |||
|gr1= System | |gr1= System | ||
|s1= [[ | |s1= [[compileScript]] [path, final, prefixHeader] | ||
|p1= path: [[String]] - | |p1= path: [[String]] - path to script file | ||
|p2= final: [[Boolean]] - (Optional, default [[ | |p2= final: [[Boolean]] - (Optional, default [[false]]) compile final, see [[compileFinal]] | ||
|p3= prefixHeader: [[String]] - (Optional, default | |p3= prefixHeader: [[String]] - (Optional, default "") value added at the beginning of the file | ||
|r1= [[Code]] | |r1= [[Code]] | ||
|x1= < | |x1= <sqf> | ||
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"; | |||
</sqf> | |||
|seealso= [[compile]] [[compileFinal]] [[preprocessFileLineNumbers]] [[preprocessFile]] [[call]] [[spawn]] | |seealso= [[compile]] [[compileFinal]] [[preprocessFileLineNumbers]] [[preprocessFile]] [[call]] [[spawn]] | ||
}} | }} |
Latest revision as of 17:44, 26 July 2024
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
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