Functions Documentation | |
Name | objRemoveOverlay |
Syntax | (objRemoveOverlay sObj overlayID) |
Argument List | sObj: spaceOjbect the overlay is on overlayID: the overlay to remove |
Returns | nothing? |
Category | overlay |
Description | Removes an overlay from a spaceobject. |
Example |
From MiscItems.xml
<OnUpdate> ; Create a barrel of waste every 90 cycles (45 seconds) (if (geq (objIncOverlayData gSource aOverlayID "counter") 90) Â Â (block (left) Â Â Â Â (setq left (objIncOverlayData gSource aOverlayID "wasteCount" -1)) Â Â Â Â (objAddItem gSource (itmCreate &itRadioactiveWaste; 1)) Â Â Â Â (objSetOverlayData gSource aOverlayID "counter" 0) Â Â Â Â Â Â Â Â (plyMessage gPlayer "Uranium rod consumed") Â Â Â Â Â Â Â Â (if (eq left 0) Â Â Â Â Â Â (objRemoveOverlay gSource aOverlayID) Â Â Â Â ) Â Â ) ) </OnUpdate> |
Comment | The only way to remove an overlay that dosen't have a set duration. |
Mod of the Month (April '25) |
Featured Mods (random) |
Stephinian Laser Cannon |
Raptor: Call of the Shadows |
Quality Mods (random) |
New Ore Graphics (+Fuel rods) |
Prospector |
Balanced Mods (random) |
System Map Scanner Pack 1.0 |
Northwind Devices for Transcendence 1.1 beta (1.08b minimum) |