Code Commands: Difference between revisions
Jump to navigation
Jump to search
Besselinksjm (talk | contribs) No edit summary |
Besselinksjm (talk | contribs) (Rewritten introduction) |
||
Line 1: | Line 1: | ||
'''Code commands''' are any commands from the scripting language expecting a coded statement string as one of their paramaters. Earlier engines accepted code as such when it was provided as a [[String]] using quotation marks, ''or'' using braces. Since Armed Assault the engine <i>specifically</i> requires braces. Thus, because the way the engine determines whether it is dealing with code has changed, this list is presented here. | |||
*[[buttonSetAction]] [idc, {[[Code]]}] | *[[buttonSetAction]] [idc, {[[Code]]}] |
Revision as of 15:30, 15 January 2010
Code commands are any commands from the scripting language expecting a coded statement string as one of their paramaters. Earlier engines accepted code as such when it was provided as a String using quotation marks, or using braces. Since Armed Assault the engine specifically requires braces. Thus, because the way the engine determines whether it is dealing with code has changed, this list is presented here.
- buttonSetAction [idc, {Code}]
- _control buttonSetAction {Code}
- call {Code}
- Code = compile String
- createUnit [ Position, Group, {Code},... ]
- _control ctrlSetEventHandler ["handler name", {Code}]
- _display displaySetEventHandler ["KeyDown", {Code}]
- exitWith {Code}
- forEach
- if (condition) then {Code}
- if (condition) then {Code} else {Code}
- _bool = isNil {Code}
- onMapSingleClick {Code}
- onPlayerConnected {Code}
- onPlayerDisconnected {Code}
- spawn {Code}
- switch (_var) do { case value: {Code}; };
- switch (_bool) do { case (Code): {Code}; };
- waitUntil {Code}
- while {Code} do {Code}