Functions Documentation |
|
Name |
shpGetOrderTarget |
Syntax |
(shpGetOrderTarget obj) -> obj |
Argument List |
obj: the spaceobject to get the target of |
Returns |
the spaceobject the obj is targeting |
Category |
spaceobject, ship
|
Description |
Use to get the target of a spaceobjects order, say, the object it is guarding, attacking or escorting. |
Example |
taken from &intZoanthropeOnOrderChanged;
(block (prevLeader newLeader)
; Register for the new leader
(setq newLeader (shpGetOrderTarget gSource))
(objSetObjRefData gSource "leader" newLeader)
(objRegisterForEvents gSource newLeader)
)
|
Comment |
|