ForceScript API Quick Reference: Difference between revisions

From DF21 Wiki
No edit summary
Line 41: Line 41:
| <code>float4x4</code>
| <code>float4x4</code>
| a 4x4 matrix of floats
| a 4x4 matrix of floats
|}
== Dark Forces types ==
{|
|-
| <code>Sector</code>
| a sector
|-
| <code>Wall</code>
| a wall
|-
| <code>Object</code>
| an object
|-
| <code>LevelTexture</code>
| a level texture
|-
| <code>Elevator</code>
| an elevator
|}
|}

Revision as of 06:52, 15 November 2026

Basic types

int signed 32-bit integer
uint unsigned 32-bit integer
float 32-bit floating point number
bool boolean
string string

Arrays and vectors

array an array
float2 a vector of 2 floats
float3 a vector of 3 floats
float4 a vector of 3 floats
float2x2 a 2x2 matrix of floats
float3x3 a 3x3 matrix of floats
float4x4 a 4x4 matrix of floats

Dark Forces types

Sector a sector
Wall a wall
Object an object
LevelTexture a level texture
Elevator an elevator