Code guidelines
From Suf
(Difference between revisions)
(→Variable Types) |
|||
Line 5: | Line 5: | ||
* Number variables | * Number variables | ||
- | ** '''FLOAT''' (this is a number, it can be a whole number or a decimal) | + | ** '''FLOAT''' (this is a number, it can be a whole number or a decimal.) |
- | ** '''INTEGER''' (this is a whole number) | + | ** '''INTEGER''' (this is a whole number.) |
* Switches | * Switches | ||
- | ** '''BOOL / BOOLEAN''' (this is a switch, it can be either TRUE or FALSE, sometimes indicated by a 0 (false) or a 1 (true)) | + | ** '''BOOL / BOOLEAN''' (this is a switch, it can be either TRUE or FALSE, sometimes indicated by a 0 (false) or a 1 (true).) |
* 3D | * 3D | ||
- | ** '''3DMESHFILE''' (this is a 3d mesh file, such as 'example.mesh'. it must be replicated with the '.mesh' extention) | + | ** '''3DMESHFILE''' (this is a 3d mesh file, such as 'example.mesh'. it must be replicated with the '.mesh' extention.) |
+ | ** '''VECTOR / VECTOR3D''' (this is a position in 3d space, it's defined as 3 floats with a space between them, in the format of X position, Y position and Z position, for example '0 5.5 0' would be 5.5 units above the world's center.) |
Revision as of 14:05, 3 August 2007
If you're not familar with scripting, read on..
Variable Types
Within the examples of the definitions on this wiki, you may see some strange words in brackets. These are types of variables.
- Number variables
- FLOAT (this is a number, it can be a whole number or a decimal.)
- INTEGER (this is a whole number.)
- Switches
- BOOL / BOOLEAN (this is a switch, it can be either TRUE or FALSE, sometimes indicated by a 0 (false) or a 1 (true).)
- 3D
- 3DMESHFILE (this is a 3d mesh file, such as 'example.mesh'. it must be replicated with the '.mesh' extention.)
- VECTOR / VECTOR3D (this is a position in 3d space, it's defined as 3 floats with a space between them, in the format of X position, Y position and Z position, for example '0 5.5 0' would be 5.5 units above the world's center.)