Functions Documentation | |
Name | objSetOverlayData |
Syntax | (objSetOverlayData sObj overlayID attrib data) |
Argument List | sObj: spaceOjbect the overlay is on overlayID: the overlay to access attrib: the name of the data attribute to work with data: arbitrary data to set on overlay |
Returns | nothing? |
Category | overlay |
Description | Sets arbitrary data on an overlay. |
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 | Analgous to objSetData. |
22 visitors online |
Guest |
Guest |
Guest |
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) |
Brigand Playership for PSD6+ |
Cruiser, and a pair of fighters. |
Quality Mods (random) |
Gravity |
Brigand Playership for PSD6+ |
Balanced Mods (random) |
Northwind Equipment Pack for 1.0 |
Brigand Playership for PSD6+ |