Code Commands: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 16: Line 16:
*[[call]] {[[Code]]}
*[[call]] {[[Code]]}
*[[while]] {[[Code]]} do {Code}  
*[[while]] {[[Code]]} do {Code}  
 
?(condition) : [[Code]]
*[[forEach]]
*[[forEach]]
*[[if]] (condition) then {Code}
*[[if]] (condition) then {Code}
Line 23: Line 23:
*[[spawn]] {Code}
*[[spawn]] {Code}
*_cntrol [[ctrlSetEventHandler]] ["handler name", {Code}]
*_cntrol [[ctrlSetEventHandler]] ["handler name", {Code}]
*_display [[displaySetEventHandler]] ["KeyDown", {Code}]

Revision as of 13:34, 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.

?(condition) : Code