SCRIPTING FUNCTIONS

Sort alphabetically | Sort by category

All | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | R | S | T | U | V | Z


Exist

Check if a ship exists or not.
This function is used specifically for checking ships. For other objects, use GetEnabled.
Function returns either 0(false) or 1(true) and saves to status.

int status = 0 ;
ship GetByKeyName ship0 Exist status ;


Explosion

Creates an explosion.

float delay = 0.0 ;
float3 position = 0.0 0.0 0.0 ;
float3 dPosition = 0.0 0.0 0.0 ; [diagonal offset]
float3 color = 1.0 1.0 1.0 ; [additive colorizing]
float transparency = 1.0 ;
int explosionId = 1 ; [->explosions.wds]
float sizeStart = 30.0 ;
float sizeEnd = 75.0 ;
int sizeSort = 0 ; [set 0 for no size offset]
float lifetime = 0.6 ;
float rndOffset = 0.0 ; [random position offset]
int blendType = 0 ;
explosion delay position dPosition color transparency explosionId sizeStart sizeEnd sizeSort lifetime rndOffset blendType ;