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


AddCommoditiesCount

Add commodities to the player inventory.

int commodityId = 15 ;[->commodities.wdt]
int amount = 105 ;
player AddCommoditiesCount commodityId amount ;


AddContraband

Add a commodity to a list of illegal commodities in a region.

int region = 1 ; [->regions.wdt]
int commodity = 4 ; [->commodities.wdt]
game AddContraband region commodity ;


AddCredits

Add credits to player.

int credits = 250 ;
player AddCredits credits ;


AddExp

Add Experience to player.

int experience = 110 ;
player AddExp experience ;


AddQuestItemCount

Add item to player inventory.

int itemId = 1 ; [->items.wdt]
int amount = 3 ;
player AddQuestItemCount itemId amount ;


AddReputation

Change player reputation.

int repChange = 100 ;
player AddReputation repChange ;


anomalyAdd

Create a temporary anomaly.

int id = 0 ; [->EditorAnomalies.wdt]
float3 position = 0.0 0.0 0.0 ;
float duration = 5.0 ;
anomalyAdd ANO_151 id position duration ;


Assembly spawn

Spawn an assembly (*.asb that contains model mesh and particles)

float delay = 0.0 ;
float3 position = 0.0 0.0 0.0 ;
int asbId = 0 ; [->FreeModel.wds]
float lifetime = 3.0 ;
assembly delay position asbId lifetime ;


AttackPlayer

Force an AI ship to attack player.

ship GetByKeyName ship0 AttackPlayer ;