Difference between revisions of "Category:Variables"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Cipscis
(Clarification)
imported>JOG
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
There a few types of variables. Although you can declare a variable to be Short or Long, both produce the same result as Int.
There are a few types of variables. Most store numbers, but the special [[Reference variables|reference variables]] stores pointers to objects in the game world so you can run functions on it later.


int varNameInt
Although you can declare a variable to be Short or Long, both produce the same result as Int.


float varNameFloat
int varNameInt
float varNameFloat
[[Reference_variables|ref]] varNameRef


[[Reference_variables|ref]] varNameRef


Sizes of numbers that can be stored in each type:
Sizes of numbers that can be stored in each type:
Line 11: Line 12:
<pre>
<pre>
int        -2,147,483,648 to 2,147,483,647
int        -2,147,483,648 to 2,147,483,647
float      3.4E +/- 38 (7 digits)  
 
float      1.18E-38 to 3.40E38 (single precision = 7 digits)
 
ref        an object reference</pre>
ref        an object reference</pre>


[[Category:Scripting]]
[[Category:Scripting]]
[[Category:Commands]]
[[Category:Commands]]

Latest revision as of 16:55, 4 March 2011

There are a few types of variables. Most store numbers, but the special reference variables stores pointers to objects in the game world so you can run functions on it later.

Although you can declare a variable to be Short or Long, both produce the same result as Int.

int	varNameInt
float	varNameFloat
ref	varNameRef


Sizes of numbers that can be stored in each type:

int        -2,147,483,648 to 2,147,483,647

float      1.18E-38 to 3.40E38 (single precision = 7 digits)

ref        an object reference

Pages in category "Variables"

The following 9 pages are in this category, out of 9 total.