Code Commands: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Some further expansion)
(Started list of commands requiring code as String)
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 (see [[Code vs. Strings]]). Thus, because the way the engine determines whether it is dealing with code has changed, this list is presented here.
'''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 (see [[Code vs. Strings]]). Thus, because the way the engine determines whether it is dealing with code has changed, this list is presented here.


Commands passed as data type [[Code]]:
*[[buttonSetAction]] [idc, {[[Code]]}]
*[[buttonSetAction]] [idc, {[[Code]]}]
*_control [[buttonSetAction]] {[[Code]]}
*_control [[buttonSetAction]] {[[Code]]}
Line 13: Line 14:
*[[if]] (condition) [[then]] {[[Code]]} [[else]] {[[Code]]}
*[[if]] (condition) [[then]] {[[Code]]} [[else]] {[[Code]]}
*_bool = [[isNil]] {[[Code]]}
*_bool = [[isNil]] {[[Code]]}
*[[onDoubleClick]] {[[Code]]}
*[[onMapSingleClick]] {[[Code]]}
*[[onPlayerConnected]] {[[Code]]}
*[[onPlayerConnected]] {[[Code]]}
*[[onPlayerDisconnected]] {[[Code]]}
*[[onPlayerDisconnected]] {[[Code]]}
Line 22: Line 21:
*[[waitUntil]] {[[Code]]}  
*[[waitUntil]] {[[Code]]}  
*[[while]] {[[Code]]} do {[[Code]]}
*[[while]] {[[Code]]} do {[[Code]]}
Commands passed as data type [[String]]:
*key [[bindKey (VBS2)|bindKey]] "[[Code]]"
*map [[onDoubleClick]] "[[Code]]"
*map [[onMapSingleClick]] "[[Code]]"

Revision as of 13:06, 18 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 (see Code vs. Strings). Thus, because the way the engine determines whether it is dealing with code has changed, this list is presented here.

Commands passed as data type Code:


Commands passed as data type String: