Editors Note: Needs to be updated: (objGetOrderGiver) now optionally takes a destroy reason.
Functions Documentation
View Function Edit Function
Name objGetOrderGiver
Syntax (objGetOrderGiver spaceObject)
Argument List spaceObject: The space object that you want to get the order giver from.
Returns spaceObject: The order giver.
Category orders, spaceobject
Description Gets the space object that gave a order to the passed in space object.
(eq (objGetOrderGiver gsource) gPlayerShip)

Returns whether the calling space object has been given an order by the player ship.
Comment Helpful little function if you need to know who gave an order to a ship.