Delete Object โ
Delete the object when it is rezzed on the ground (anti-rez, demos, temporary items).
Deletes the object that runs the action. Combined with the Rez event it becomes anti-rez protection: a product that vanishes if someone drops it on the ground.
Fields โ
No fields.
Notes โ
- Works only when the object is rezzed (not attached). An attached HUD ignores it; use Detach for that.
- Deleting is permanent for that copy. Customers with copy permission still have the inventory item; no-copy items are gone. Say so in your product notes.
- Put it last in the function.
Test carefully
While building, the Rez event fires when you rez the HUD to work on it. If you add Delete Object to the Rez event, your working copy deletes itself. Build the anti-rez logic last, test with a copy, and keep the original safe in inventory.
Example: anti-rez with a warning โ
text
Rez event
โโ Message (Owner): "This item cannot be rezzed and will be deleted."
โโ Timer 2
โโ Delete ObjectSee Demo Version for the timed-demo variant.