Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string inventoryName = "Object";
- init()
- {
- //Checking if the notecard is in the inventory, if not return method.
- if(llGetInventoryType(inventoryName) == -1) return;
- //Removing the item named AVpos, be it a notecard or anything else.
- llRemoveInventory(inventoryName);
- //Removing the script after its done.
- llRemoveInventory(llGetScriptName());
- }
- default
- {
- state_entry()
- {
- init();
- }
- changed(integer change)
- {
- if (change & CHANGED_INVENTORY)
- {
- init();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement