Code Commands: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(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
'''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.
 
[[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]]}]
*[[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.