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. |
19 visitors online |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Guest |
Mod of the Month (March '24) |
Featured Mods (random) |
BattleZone |
Captain's Log 3.1 |
Quality Mods (random) |
Holographic Stealth Device |
Osaka Class Transport [In honor of Frontier 0.5] 1.1e |
Balanced Mods (random) |
Starlight-class cruiser |
Tech Analyzer |