shpOrder¶
-
function (
shpOrder
ship order [target] [count]) → True/Nil¶ Parameters: order
'aim
obj Aim, but do not fire 'approach
obj [dist] Approach target 'attack
obj [time] Attack target 'attackArea
obj dist [time] Attack around target 'attackHold
obj [time] 'attackNearestEnemy
Attack nearest enemy 'attackPlayerOnReturn
Wait and attack player 'attackStation
obj [?] Attack target station 'bombard
obj [time] Hold and attack target 'dock
obj Dock with target 'escort
obj [ang] [dist] Escort target 'fireEvent
obj event Fire event on target 'follow
obj Follow without defending 'followPlayerThroughGate
'gate
[obj] Gate out of system 'gateOnStationDestroyed
Flee if station destroyed 'gateOnThreat
Flee if threatened 'goto
obj [dist] Goto target 'gotoPos
pos Goto position 'guard
obj Guard target 'hold
[time] Stay in place 'holdAndAttack
obj [time] 'holdCourse
course dist Hold course 'loot
obj Loot target 'mine
obj Mine asteroids [base] 'navPath
navID Follow nav path ID 'orbit
obj dist [time] Orbit target 'patrol
obj [dist] Patrol around target 'scavenge
Scavenge for scraps 'sendMessage
obj msg Send message to target 'sentry
obj [time] Guard target (turrets) 'tradeRoute
Move between stations 'turnTo
ang Turn to face angle 'wait
[time] Wait, do not attack 'waitForEnemy
[time] Wait until enemy in LRS 'waitForPlayer
Wait for player to return 'waitForTarget
obj [dist] [time] Wait until target in range 'waitForThreat
[time] 'waitForUndock
obj [time] Wait for target to undock 'wander
Wander, avoiding enemies