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


GetAcquire

Check status of quest acquired flag.
Function returns either 0(false) or 1(true).

int questCond = 0 ;
GetById -> QuestMain.wdt | QuestSide.wdt
mainquest GetById 1 GetAcquire questCond ;
sidequest GetById 1 GetAcquire questCond ;


GetAvailable

Check status of quest available flag.
Function returns either 0(false) or 1(true).

int questCond = 0 ;
GetById -> QuestMain.wdt | QuestSide.wdt
mainquest GetById 1 GetAvailable questCond ;
sidequest GetById 1 GetAvailable questCond ;


GetBoardable

Get ship's boardable flag. (0 == false, 1 == true).
Ships with flag set to 0 CANNOT be boarded!

int boardFlag = 0 ;
ship GetByKeyName ship0 GetBoardable boardFlag ;


GetByKeyName

Get object by it's unique keyname.
Function is used ONLY as a part of other functions!

GetByKeyName keyname;


GetCharacterClass

Get player character class (as integer).

charClass = 0 ; [->SkillClasses.wdt]
player GetCharacterClass charClass ;


GetClass

Get ship class (as integer).

int shipClass = 0 ; [->ShipClass.wdt]
ship GetByKeyName ship0 GetClass shipClass ;


GetCloak

Check whether ship has cloak set to ON(1) or OFF(0).

int cloakState ;
ship GetbyKeyName ship0 GetCloaked cloakState ;


GetCommoditiesCount

Check quantity of a commodity in player inventory.

int commodityId = 15 ; [->commodities.wdt]
int howMuch = 0 ;
player GetCommoditiesCount commodityId howMuch ;


GetCondition

Get condition of an object.
0 = indestructible
1 = destructible

int condition = 0 ;
ship GetByKeyName ship0 GetCondition condition ;


GetCredits

Get player credit count.

int credits = 0 ;
player GetCredits credits ;


GetDefault

Saves current player camera setup for later use. Used in conjunction with cutscene cameras. Can only be used after(!) SetCSCamera is activated

camera GetDefault ;


GetEnabled

Check if an object is activated.

int shipCond = 0 ;
ship GetByKeyName ship0 GetEnabled shipCond ;


GetExp

Get player experience.

int exp = 0 ;
player GetExp exp ;


GetFaction

Get faction of object.

int facId = 0 ;
structure GetByKeyName keynameSTR GetFaction facId ;


GetFloat

Get value of the float modding variable in the save file.

int stackVarId = 0 ;
float floatVal = 0.0 ;
modingvar GetFloat stackVarId floatVal ;
modingvar GetFloat 0 floatVal ;


GetFriendFoe

Check status of Friend-Foe mechanism.
Function returns either 0(false) or 1(true).

int status = 0 ;
game GetFriendFoe status ;


GetGameStatus

Check status of player controls.
Function returns either 0(on) or 1(off).

int status = 0 ;
game GetGameStatus status ;


GetHP

Get objects hitpoints.

float shipHP = 0.0 ;
ship GetByKeyName ship0 GetHP shipHP ;


GetHPRel

Get relative Hull value of object. Return value is percentage integer [0,100].

int HullPercentage;
ship GetByKeyname ship0 GetHPRel HullPercentage ;


GetInt

Get the value of int modding variable in the save file.

int stackVarId = 0 ;
int intVal = 0 ;
modingvar GetInt stackVarId intVal ;
modingvar GetInt 0 intVal ;


GetInvulnerable

Get invulnerable flag of a ship.

int state = 0 ;
ship GetByKeyName ship0 GetInvulnerable state ;


GetLevel

Get player experience level.

int level = 0 ;
player GetLevel level ;


GetPosition

Get position of an object.

float3 position ;
ship GetByKeyName ship0 GetPosition position ;
ship GetPlayer GetPosition position ;


GetPTE

Check whether ship has Power to Engines set to ON(1) or OFF(0).

int pteState ;
ship GetbyKeyName ship0 GetPTE pteState ;


GetQuestItemCount

Check quantity of a quest item in player inventory.

int itemId = 3 ; [->QuestItems.wdt]
int howMuch = 0 ;
player GetQuestItemCount itemId howMuch ;


GetRadius

Get radius of object frustum sphere.
Frustum sphere encompasses an entire object.

float radius = 0.0 ;
ship GetByKeyName ship0 GetRadius radius ;


GetRandomEffectPosition

Get one of the ShipEffectPositions positions from the *.shp file. The position will NOT be remain linked to the parent ship, but remain in global space.
Used specifically for linking various particle effects like critical hits.

float3 position = 0.0 0.0 0.0 ;
ship GetByKeyName GetRandomEffectPosition position ;


GetRandomEffectPositionLocal

Get one of the ShipEffectPositions positions from the *.shp file. The position will remain linked to the parent ship in local space.
Used specifically for linking various particle effects like critical hits.

float3 position = 0.0 0.0 0.0 ;
ship GetByKeyName GetRandomEffectPositionLocal position ;


GetRank

Get player rank (as integer).

int rank = 0 ; [->Ranks.wdt]
player GetRank rank ;


GetReputation

Get player reputation.

int rep = 0 ;
player GetReputation rep ;


GetRndPosition

Get a random position intersecting a ship shield mesh. Used for explosions.

float3 position = 0.0 0.0 0.0 ;
ship GetByKeyName ship0 GetRndPosition position ;


GetRndPositionLoc

Get random position intersecting a ship shield mesh. The position remains linked to the parent object.

Can be used for spawning particle effects, but GetRandomEffectPositionLoc could be more suitable.

float3 position = 0.0 0.0 0.0 ;
ship GetByKeyName ship0 GetRndPositionLoc position ;


GetRotation

Get object rotation.

float3 rotation = 0.0 0.0 0.0 ;
ship GetByKeyName ship0 GetRotation rotation ;


GetSolve

Check status of quest solved flag.
Function returns either 0(false) or 1(true).

int questCond = 0 ;
mainquest GetById 1 GetSolve questCond ;
sidequest GetById 1 GetSolve questCond ;


GetSort (structure)

Get type of structure (as seen in BaseStructureSort.wdt)

int structureSort = 0 ;
structure GetByKeyName GetSort structureSort ;


GetSpeed

Function returns ship speed.

float speed ;
ship GetByKeyName ship0 GetSpeed speed ;
ship GetPlayer GetSpeed speed ;


GetTroopersNo

Get the number of current Troopers on a ship.

int trooperCount = 0 ;
ship GetByKeyName ship0 GetTroopersNo trooperCount ;


Global event: Alien incursion

Global event: Alien incursion

int eventId = 19 ; //eventId == Alien incursion
int placeType = 1 ; //placeType == REGION (affects alien encounters in the selected region
int regionId = 16 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Anomaly activity decreased

Global event: Anomaly activity decreased

int eventId = 17 ; //eventId == Anomaly activity decreased
int placeType = 1 ; //placeType == REGION (affects anomaly encounters in the selected region
int regionId = 16 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Anomaly activity increased

Global event: Anomaly activity increased

int eventId = 17 ; //eventId == Anomaly activity increased
int placeType = 1 ; //placeType == REGION (affects anomaly encounters in the selected region
int regionId = 16 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Cease fire signed

Global event: Cease fire signed

int eventId = 5 ; //eventId == Peace treaty signed
int placeType = 1 ; //placeType == REGION (affects battle encounters in the selected region, depending on attackerFaction
int regionId = 14 ; //regionId
float eventDur = 60.0 ; //event duration in seconds
int attackerFaction = 0 ; //factionId of the attacker [->BaseFactions.wdt]
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur attackerFaction modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur attackerFaction modVal titleLine textLine ;


Global event: Company lowers prices

Global event: Company lowers prices

int eventId = 13 ; //eventId == Decreased prices of all services and products
int placeType = 7 ; //place type == faction(affects all stations/planets belonging to factionId
int factionId = 6 ; //[->BaseFactions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 0.2 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType factionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType factionId eventDur modObj modifier titleLine textLine ;


Global event: Company raises prices

Global event: Company raises prices

int eventId = 12 ; //eventId == Increased prices of all services and products
int placeType = 7 ; //place type == faction(affects all stations/planets belonging to factionId
int factionId = 6 ; //[->BaseFactions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 0.2 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType factionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType factionId eventDur modObj modifier titleLine textLine ;


Global event: Embargo

Global event: Embargo

int eventId = 14 ; //eventId == Commodity becomes illegal
int placeType = 1 ; //placeType == REGION (affects entire region and security contraband checks
int regionId = 20 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int commId = 46 ; //[->BaseCommodities.wdt]
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur commId modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur commId modVal titleLine textLine ;


Global event: Embargo lifted

Global event: Embargo lifted

int eventId = 15 ; //eventId == Commodity becomes legal
int placeType = 1 ; //placeType == REGION (affects entire region and security contraband checks
int regionId = 20 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int commId = 46 ; //[->BaseCommodities.wdt]
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur commId modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur commId modVal titleLine textLine ;


Global event: Miner activity decreased

Global event: Miner activity decreased

int eventId = 21 ; //eventId == Miner activity decreased
int placeType = 1 ; //placeType == REGION (affects miner encounters in the selected region
int regionId = 27 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Miner activity increased

Global event: Miner activity increased

int eventId = 20 ; //eventId == Miner activity increased
int placeType = 1 ; //placeType == REGION (affects miner encounters in the selected region
int regionId = 27 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Pirate activity decreased

Global event: Pirate activity decreased

int eventId = 9 ; //eventId == Pirate activity increased
int placeType = 1 ; //placeType == REGION (affects pirate encounters in the region
int regionId = 27 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Pirate activity increased

Global event: Pirate activity increased

int eventId = 8 ; //eventId == Pirate activity increased
int placeType = 1 ; //placeType == REGION (affects pirate encounters in the region
int regionId = 27 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Planetary quarantine

Global event: Planetary quarantine

int eventId = 7 ; //eventId == Planet under lockdown
int placeType = 3 ; //placeType == PLANET (affects planet by keyname)
int placeId = -1 ; //unused in this type of event
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType placeId baeldorPLA eventDur modObj modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType placeId baeldorPLA eventDur modObj modVal titleLine textLine ;


Global event: Resource price increase

Global event: Resource price increase

int eventId = 0 ; //eventId == resource price increase
int placeType = 7 ; //place type == faction(affects all stations/planets belonging to factionId
int factionId = 6 ; //[->BaseFactions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int commId = 14 ; //[->BaseCommodities.wdt]
float modifier = 0.2 ; //price modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType factionId eventDur commId modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType factionId eventDur commId modifier titleLine textLine ;


Global event: Resource price reduction

Global event: Resource price reduction

int eventId = 1 ; //eventId == resource price decreased
int placeType = 7 ; //place type == faction(affects all stations/planets belonging to factionId
int factionId = 6 ; //[->BaseFactions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int commId = 14 ; //[->BaseCommodities.wdt]
float modifier = 0.2 ; //price modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType factionId eventDur commId modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType factionId eventDur commId modifier titleLine textLine ;


Global event: Station under lockdown

Global event: Station under lockdown

int eventId = 3 ; //eventId == Station under lockdown
int placeType = 4 ; //placeType == STATION (affects the selected station by keyname
int placeId = -1 ; //unused in this type of event
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType placeId vigoSTA eventDur modObj modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType placeId vigoSTA eventDur modObj modVal titleLine textLine ;


Global event: System price decreased

Global event: System price decreased

int eventId = 11 ; //eventId == ShipSystem price decreased
int placeType = 7 ; //place type == faction(affects all stations/planets belonging to factionId
int factionId = 6 ; //[->BaseFactions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 0.2 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType factionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType factionId eventDur modObj modifier titleLine textLine ;


Global event: System price increased

Global event: System price increased

int eventId = 10 ; //eventId == ShipSystem price increased
int placeType = 7 ; //place type == faction(affects all stations/planets belonging to factionId
int factionId = 6 ; //[->BaseFactions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 0.2 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType factionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType factionId eventDur modObj modifier titleLine textLine ;


Global event: Tgate shutdown

Global event: Tgate shutdown

Global event: Tgate shutdown //Shutdown all TGates in a region
int eventId = 2 ; //eventId == TGate shutdown
int placeType = 1 ; //placeType == region (affects all TGates in the region)
int regionId = 16 ; //[->Base egions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modVal titleLine textLine ;

//Shutdown a single TGate by keyname
int eventId = 2 ; //eventId == TGate shutdown
int placeType = 5 ; //placeType == TGate (affects the selected TGate by keyname
int placeId = -1 ; //unused in this type of event
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType placeId nirithGate eventDur modObj modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType placeId nirithGate eventDur modObj modVal titleLine textLine ;


Global event: Trader activity decreased

Global event: Trader activity decreased

int eventId = 23 ; //eventId == Trader activity decreased
int placeType = 1 ; //placeType == REGION (affects trader encounters in the selected region
int regionId = 27 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: Trader activity increased

Global event: Trader activity increased

int eventId = 22 ; //eventId == Trader activity increased
int placeType = 1 ; //placeType == REGION (affects trader encounters in the selected region
int regionId = 27 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int modObj = 0 ; //unused in this type of event
float modifier = 2.0 ; //modifier
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur modObj modifier titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur modObj modifier titleLine textLine ;


Global event: War breaks out

Global event: War breaks out

int eventId = 6 ; //eventId == War breaks out
int placeType = 1 ; //placeType == REGION (affects battle encounters in the selected region, depending on attackerFaction
int regionId = 14 ; //regionId [->BaseRegions.wdt]
float eventDur = 60.0 ; //event duration in seconds
int attackerFaction = 0 ; //factionId of the attacker [->BaseFactions.wdt]
float modVal = 0.0 ; //unused in this type of event
int titleLine = 0 ; Line Id from TextsLogs.txt (counting starts from 0!)
int textLine = 1 ; Line Id from TextsLogs.txt (counting starts from 0!)
globalevent Set eventId placeType regionId eventDur attackerFaction modVal titleLine textLine ;

//add captain's log and news on stations and planets
globalevent AddLog eventId placeType regionId eventDur attackerFaction modVal titleLine textLine ;


GoTo

Instruct a ship to go to a position. The ship can be distracted in which case it will lose its target position and act according to its AI.

float3 targetPos = 0.0 0.0 0.0 ;
ship GetByKeyName ship0 GoTo targetPos ;


GoToScript

Instruct a ship to go to a position and once there, fire off another script. The ship can be distracted in which case it will lose its target position and script and act according to its AI.

float3 targetPos = 0.0 0.0 0.0 ;
ship GetByKeyName ship0 GoToScript targetPos Spg2\Scripts\TargetScript.sal ;