modding:function:objaddoverlay
This is an old revision of the document!
Discuss this page on this pages TalkPage
objAddOverlay
Syntax | (objAddOverlay obj overlayType pos rotation [lifetime]) |
---|---|
Arguments | obj: The space object to add the overlay on |
overlayType: the overlay type to add to the space object | |
pos: Optional field. Position of the overlay | |
rotation: Optional field. Rotation of the overlay. | |
[lifetime]: Optional field. Lifetime, in ticks, the overlay is on the ship for. | |
Returns | Overlay ID |
Category | spaceObject functions |
Description | Adds an overlay to a spaceObject. |
Example
(objAddOverlay gSource &sfSustain; 500)
Adds the Sustain overlay to the source for 500 ticks.
(objAddOverlay gSource &sfSustain; 50 0 )
Adds the Sustain overlay 50 pixels starboard to the source object.
Return to Space Object functions list
Return to functions list
modding/function/objaddoverlay.1486091079.txt.gz · Last modified: 2017/02/03 03:04 by xephyr