Editors Note: The positive direction for X is to the right but the positive direction for the Y is pointed DOWN.
Functions Documentation
View Function Edit Function
Name objGetImageDesc
Syntax (objGetImageDesc spaceObject) => (List)
Argument List spaceObject: the spaceobject that you want the details of the image used.
Returns list: a list of 5 numbers, the first is the UNID of the image resource as a number, the second and the third are the x,y coordinates in pixels of the resource image (from the top left corner of the image) the fourth and fifth are the sizes of the resource image in pixels. (first width then height)
Category 0.99, spaceobject, unid
Description Returns details on the resource image used by a spaceObject.
(objGetImageDesc gPlayership)

returns (61757 0 0 64 64) if the player is using the Freighter.
Comment Helpful function for image resource management.