SQS to SQF conversion
From Bohemia Interactive Community
SQF Syntax has been introduced in Operation Flashpoint: Resistance v1.85 and is the Arma series' main scripting language since. The main differences with SQS Syntax are:
- execVM is used (instead of exec for SQS)
- Every command has to end with a semicolon (c;)
- the following commands disappeared:
- Line returns do not impact code
- SQF can return a variable, where SQS cannot
Conversion examples
SQS | SQF |
---|---|
Comment | |
Copy
; This is a comment Copy
; This is a
; multiline
; comment
Copy
"this is a comment"; |
Copy
// This is single-line comment Copy
/*
This is a
multiline
comment
*/ Copy
"this is a comment"; |
Condition wait | |
Delay | |
Conditional command | |
Multi-conditional command | |
Cycle | |
Cycle with step | |
Structured conditional command | |
Exiting | |