Variables/Data Structures

From ETC Public Wiki
Jump to: navigation, search

//define a floating point variable (floats can hold integers with or without decimal points)

var firstFloat : Float = 1.0;


//define an integer - an integer is a positive or negative number with no decimal points

var firstInteger : int = 10;


//define a string - a string can contain both next and numbers but can't be numerically compared without first being processed

var firstString : String;


//define a boolean - booleans hold a value of either true or false (1 or 0)

var frstBoolean : Boolean;


//define a Vector3 - a Vector3 holds a set of 3 float values or integers (0,0,0)

var frstVector : Vector3;