Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. string inventoryName = "Object";
  2. init()
  3. {
  4. //Checking if the notecard is in the inventory, if not return method.
  5. if(llGetInventoryType(inventoryName) == -1) return;
  6.  
  7. //Removing the item named AVpos, be it a notecard or anything else.
  8. llRemoveInventory(inventoryName);
  9.  
  10. //Removing the script after its done.
  11. llRemoveInventory(llGetScriptName());
  12. }
  13. default
  14. {
  15. state_entry()
  16. {
  17. init();
  18. }
  19. changed(integer change)
  20. {
  21. if (change & CHANGED_INVENTORY)
  22. {
  23. init();
  24. }
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement