|
|
(10 intermediate revisions by 4 users not shown) |
Line 1: |
Line 1: |
| [[Code]] commands are any commands from the scripting language expecting a coded statement string as one of their paramaters | | #REDIRECT [[Code vs. Strings#Code_Commands]] |
| | |
| [[exitWith]] {[[Code]]} is one example
| |
| | |
| Because of the important change between the Armed Assault engine and previous versions (CWC / Resistance), the list is presented here.
| |
| | |
| Essentially earlier engines accepted code as a [[String]] using quotation marks, ''or'' using brace, whereas Arma '''specifically''' requires brace.
| |
| | |
| *[[exitWith]] {[[Code]]}
| |
| *[[createUnit]] [ [[Position]], [[Group]], '''{[[Code]]}''',... ]
| |
| *[[Code]]=[[compile]] [[String]]
| |
| *[[waitUntil]] {[[Code]]}
| |
| *[[if]] (condition) '''[[then]]''' {[[Code]]} '''else''' {[[Code]]}
| |
| *[[onMapSingleClick]] {[[Code]]}
| |
| *_bool = [[isNil]] {[[Code]]}
| |
| *[[call]] {[[Code]]}
| |
| *[[while]] {[[Code]]} do {Code}
| |
| *[[forEach]]
| |
| *[[if]] (condition) then {Code}
| |
| *[[onPlayerConnected]] {code}
| |
| *[[onPlayerDisconnected]] {Code}
| |
| *[[spawn]] {Code}
| |
| *_cntrol [[ctrlSetEventHandler]] ["handler name", {Code}]
| |
| *_display [[displaySetEventHandler]] ["KeyDown", {Code}]
| |
| *[[buttonSetAction]] [idc, {Code}]
| |
| *_control buttonSetAction {player exec "reply.sqs"}
| |