Code Commands: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Besselinksjm (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
Essentially earlier engines accepted code as a [[String]] using quotation marks, ''or'' using brace, whereas Arma '''specifically''' requires brace. | Essentially earlier engines accepted code as a [[String]] using quotation marks, ''or'' using brace, whereas Arma '''specifically''' requires brace. | ||
*[[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]]} | *[[exitWith]] {[[Code]]} | ||
*[[ | *[[forEach]] | ||
*[[Code]] | *[[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]]} | *[[waitUntil]] {[[Code]]} | ||
*[[while]] {[[Code]]} do {[[Code]]} | |||
*[[while]] {[[Code]]} do { | |||
Revision as of 15:25, 15 January 2010
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 (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.
- 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}