modding:function:shpgetimagedesc
Discuss this page on this pages TalkPage
shpGetImageDesc
See shpGetImageDesc at Xelerus
Syntax | (shpGetImageDesc spaceObject [number]) |
---|---|
Arguments | spaceObject: the spaceobject that you want the details of the image used. |
number: optional parameter that specifies the rotation of the ship. | |
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, ship, unid |
Description | Returns details on the resource image used by a ship. |
Example
(shpGetImageDesc gPlayership)
returns (61757 0 0 64 64) if the player is using the Freighter. Return to Functions list
modding/function/shpgetimagedesc.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1