modding:function:shporder
This is an old revision of the document!
Discuss this page on this pages TalkPage
shpOrder
| Syntax | (shpOrder ship string [expression]) |
|---|---|
| Arguments | ship: The ship that you want to order. |
| string: A string representing the order. | |
| expression: The optional arguments if needed by the order. Multiple arguments possible | |
| Returns | condition: True if successful, Nil otherwise. |
| Category | orders, ship |
| Description | Gives the ship the order. |
Variations
- (shpOrder source 'waitForTarget target)
- (shpOrder source 'attack target)
- (shpOrder source 'dock target)
- (shpOrder source 'escort target)
- (shpOrder source 'hold Nil 5)
- (shpOrder source 'gate)
- (shpOrder source 'wander)
- (shpOrder source 'hold)
- (shpOrder source 'wait Nil (random 3 7))
- (shpOrder source 'goto target)
- (shpOrder source 'patrol target distance)
- (shpOrder source 'aim target)
- (shpOrder source 'guard target)
- (shpOrder wingman 'attackNearestEnemy)
- (shpOrder source 'bombard target)
- (shpOrder source 'approach marker 15)
- (shpOrder source 'turnTo 90)
- (shpOrder source 'holdCourse ??)
- (shpOrder source 'turnTo angle) ; added in 1.03
Example
(shpOrder gPlayerShip 'wait)
Returns True, ordering the player to wait doesn't do much. Return to Functions list
modding/function/shporder.1419655255.txt.gz · Last modified: (external edit)
