Editing Category:Variables

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
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.
{{MoveToPage}}


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


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


float varNameFloat
[[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 12: Line 13:
<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]]

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)