compileScript: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |game1= arma3dev |version1= 2.01" to " |game1= arma3 |version1= 2.02")
(page filling)
Line 5: Line 5:
|version1= 2.02
|version1= 2.02


|descr= {{Wiki|WIP}}
|descr= This command is an alias for <tt>[[compile]](Final) (prefixHeader + [[preprocessFileLineNumbers]] "file.sqf")</tt>. See description of [[preprocessFileLineNumbers]] for more details. {{Wiki|Stub}}


|pr= Known problems
|pr=  


|gr1= System
|gr1= System
Line 15: Line 15:
|p1= path: [[String]] - Path to script file
|p1= path: [[String]] - Path to script file


|p2= final: [[Boolean]] - (Optional, default [[???]]) Compile final, see [[compileFinal]]
|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= <code></code>
|x1= <code>[[compileScript]] ["a3\props_f_enoch\military\equipment\scripts\meteo.sqf"];
 
{{cc|has the same functionality as}}
|x2= <code></code>
[[compile]] [[preprocessFileLineNumbers]] "a3\props_f_enoch\military\equipment\scripts\meteo.sqf";</code>
 
|x3= <code></code>


|seealso= [[compile]] [[compileFinal]] [[preprocessFileLineNumbers]] [[preprocessFile]] [[call]] [[spawn]]
|seealso= [[compile]] [[compileFinal]] [[preprocessFileLineNumbers]] [[preprocessFile]] [[call]] [[spawn]]
}}
}}

Revision as of 19:16, 24 February 2021

Hover & click on the images for description

Description

Description:
This command is an alias for compile(Final) (prefixHeader + preprocessFileLineNumbers "file.sqf"). See description of preprocessFileLineNumbers for more details.
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