(Created page with "== Basic types == {| |- | <code>int</code> | signed 32-bit integer |- | <code>uint</code> | unsigned 32-bit integer |- | <code>float</code> | 32-bit floating point number |- | <code>bool</code> | boolean |- | <code>string</code> | string |} == Arrays and vectors == {| |- | <code>array</code> | an array |- | <code>float2</code> | a vector of 2 floats |- | <code>float3</code> | a vector of 3 floats |- | <code>float4</code> | a vector of 3 floats |}") |
(→Enums) |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 32: | Line 32: | ||
| <code>float4</code> | | <code>float4</code> | ||
| a vector of 3 floats | | a vector of 3 floats | ||
|- | |||
| <code>float2x2</code> | |||
| a 2x2 matrix of floats | |||
|- | |||
| <code>float3x3</code> | |||
| a 3x3 matrix of floats | |||
|- | |||
| <code>float4x4</code> | |||
| a 4x4 matrix of floats | |||
|} | |||
== Dark Forces types == | |||
{| border=1 cellpadding=4px | |||
|- | |||
| <code>Sector</code> | |||
| a sector | |||
| [[Script Sector]] | |||
|- | |||
| <code>Wall</code> | |||
| a wall | |||
| [[Script Wall]] | |||
|- | |||
| <code>Object</code> | |||
| a game object (includes the player, NPCs, scenery, 3d models, projectiles, effects/explosions, items, etc.) | |||
| [[Script Object]] | |||
|- | |||
| <code>LevelTexture</code> | |||
| a level texture | |||
| [[Script Texture]] | |||
|- | |||
| <code>Elevator</code> | |||
| an elevator | |||
| [[Script Elevator]] | |||
|} | |||
== Special objects == | |||
These are special ForceScript objects; there are (normally) only one of each in existence at any time. | |||
{| border=1 cellpadding=4px | |||
|- | |||
! Object name | |||
! Type | |||
! Description | |||
! Reference article | |||
|- | |||
| <code>game</code> | |||
| Game | |||
| Exposes properties and methods on the game currently being played | |||
| [[Game Script API]] | |||
|- | |||
| <code>level</code> | |||
| Level | |||
| Exposes properties and methods on the currently open level | |||
| [[Level Script API]] | |||
|- | |||
| <code>player</code> | |||
| Player | |||
| Exposes properties and methods on the player | |||
| [[Player Script API]] | |||
|} | |||
== Enums == | |||
=== MessageType === | |||
{| | |||
|- | |||
| <code>M_TRIGGER</code> | |||
|- | |||
| <code>NEXT_STOP</code> | |||
|- | |||
| <code>PREV_STOP</code> | |||
|- | |||
| <code>DONE</code> | |||
|- | |||
| <code>WAKEUP</code> | |||
|- | |||
| <code>MASTER_ON</code> | |||
|- | |||
| <code>MASTER_OFF</code> | |||
|- | |||
| <code>CRUSH</code> | |||
|} | |||
=== SectorFlags1 === | |||
=== WallFlags1 === | |||
=== WallFlags3 === | |||
=== SectorProp === | |||
{| | |||
|- | |||
| <code>SECTORPROP_FLOOR_HEIGHT</code> | |||
|- | |||
| <code>SECTORPROP_CEIL_HEIGHT</code> | |||
|- | |||
| <code>SECTORPROP_SECOND_HEIGHT</code> | |||
|- | |||
| <code>SECTORPROP_FLOOR_TEX</code> | |||
|- | |||
| <code>SECTORPROP_CEIL_TEX</code> | |||
|- | |||
| <code>SECTORPROP_AMBIENT</code> | |||
|} | |||
=== Items === | |||
=== Weapons === | |||
=== Ammo === | |||
=== PlayerActions === | |||
{| | |||
|- | |||
| <code>ACTION_MOVE</code> | |||
|- | |||
| <code>ACTION_ROTATE</code> | |||
|- | |||
| <code>ACTION_FIRE</code> | |||
|- | |||
| <code>ACTION_ALL</code> | |||
|} | |||
=== Projectiles === | |||
=== WallPart === | |||
{| | |||
|- | |||
| <code>WP_MIDDLE</code> | |||
|- | |||
| <code>WP_TOP</code> | |||
|- | |||
| <code>WP_BOTTOM</code> | |||
|- | |||
| <code>WP_SIGN</code> | |||
|} | |} | ||
Latest revision as of 07:57, 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 | Script Sector |
Wall
|
a wall | Script Wall |
Object
|
a game object (includes the player, NPCs, scenery, 3d models, projectiles, effects/explosions, items, etc.) | Script Object |
LevelTexture
|
a level texture | Script Texture |
Elevator
|
an elevator | Script Elevator |
Special objects
These are special ForceScript objects; there are (normally) only one of each in existence at any time.
| Object name | Type | Description | Reference article |
|---|---|---|---|
game
|
Game | Exposes properties and methods on the game currently being played | Game Script API |
level
|
Level | Exposes properties and methods on the currently open level | Level Script API |
player
|
Player | Exposes properties and methods on the player | Player Script API |
Enums
MessageType
M_TRIGGER
|
NEXT_STOP
|
PREV_STOP
|
DONE
|
WAKEUP
|
MASTER_ON
|
MASTER_OFF
|
CRUSH
|
SectorFlags1
WallFlags1
WallFlags3
SectorProp
SECTORPROP_FLOOR_HEIGHT
|
SECTORPROP_CEIL_HEIGHT
|
SECTORPROP_SECOND_HEIGHT
|
SECTORPROP_FLOOR_TEX
|
SECTORPROP_CEIL_TEX
|
SECTORPROP_AMBIENT
|
Items
Weapons
Ammo
PlayerActions
ACTION_MOVE
|
ACTION_ROTATE
|
ACTION_FIRE
|
ACTION_ALL
|
Projectiles
WallPart
WP_MIDDLE
|
WP_TOP
|
WP_BOTTOM
|
WP_SIGN
|