Code: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Code/string relations.)
m (sectioned off, updated intro slight)
Line 1: Line 1:
{{ShowGameVer|ArmA}}Introduced with Armed Assault, does not refer to Cold War Crisis or Resistance. Functions which are marked as requiring Code accepted [[String]] in previous versions. It was a prefered style to write such strings in curled braces, but it was not required.
==Introduction==


'''Description:'''
The '''Code''' type was introduced into with [[ArmA|Armed Assault]], type '''Code''' does not refer to ''Cold War Crisis'' or ''Resistance''. In previous versions it was a prefered style to write such strings in curled braces, but it was not required. With ArmA functions that are marked as requiring '''Code''' must be presented with curled braces.
 
 
==Description==


Part of code (compiled), in curled braces:
Part of code (compiled), in curled braces:


'''Example:'''


'''{_x setDamage 1}''' [[forEach]] ArrayToKill
==Examples==
 
'''{'''_x [[setDamage]] 1'''}''' [[forEach]] ArrayToKill
 
 


[[Category: Types]]
[[Category: Types]]

Revision as of 21:25, 12 October 2006

Introduction

The Code type was introduced into with Armed Assault, type Code does not refer to Cold War Crisis or Resistance. In previous versions it was a prefered style to write such strings in curled braces, but it was not required. With ArmA functions that are marked as requiring Code must be presented with curled braces.


Description

Part of code (compiled), in curled braces:


Examples

{_x setDamage 1} forEach ArrayToKill