Code Commands: Difference between revisions
Jump to navigation
Jump to search
(wip) |
mNo edit summary |
||
Line 15: | Line 15: | ||
*_bool = [[isNil]] {[[Code]]} | *_bool = [[isNil]] {[[Code]]} | ||
*[[call]] {[[Code]]} | *[[call]] {[[Code]]} | ||
*[[while]] {[[Code]]} do {Code} | |||
*[[forEach]] | |||
*[[if]] (condition) then {Code} | |||
*[[onPlayerConnected]] {code} | |||
*[[onPlayerDisconnected]] {Code} | |||
*[[spawn]] {Code} |
Revision as of 08:16, 5 September 2007
Code commands are any commands from the scripting language expecting a coded statement string as one of their paramaters
exitWith {Code} is one example
Because of the important change between the Armed Assault engine and previous versions (CWR / 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}