Data Types: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (→‎Available Types: removed not existing data types)
m (Text replacement - "Armed Assault 2" to "{{arma2}}")
Line 40: Line 40:
* [[Structured Text]]
* [[Structured Text]]


In [[ArmA_2|Armed Assault 2]], the following data types have been added:
In [[ArmA_2|{{arma2}}]], the following data types have been added:
* [[Diary_Record]]
* [[Diary_Record]]
* [[Task]]
* [[Task]]

Revision as of 00:57, 5 January 2020

The data type of a variables specifies which data it may contain. Certain operators and scripting commands require variables to be of certain types.

Definition

The data type of a variable depends on the value given to it on initialization.

myVar = "";

=> myVar is now a String

Redefinition

The data type of a variable may be changed at any point of the game by just redefining the variable with another type.

myVar = "";

myVar = 0;

=> myVar is now a Number

Available Types

These are the available data types in Operation Flashpoint:

In Armed Assault, the following data types have been added:

In Arma 2, the following data types have been added:

In VBS2, the following data type has been added:

Magic Types

There are some magic data types, which are not really datatypes, as they do not describe any particular value.

Syntactical Helper Types

Some more types are used to provide for a construction of syntactically richer constructs than normal unary / binary operators.