Advertisement
Chuckles-W

CHANGED_TELEPORT

Nov 2nd, 2019
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.  
  4.     on_rez(integer start_param)
  5.     {
  6.         // Restarts the script every time the object is rezzed
  7.         llResetScript();
  8.     }
  9.  
  10.     changed(integer change)
  11.     {
  12.  
  13. if ((change & CHANGED_REGION) || (change & CHANGED_TELEPORT))
  14.         // Resets the detected list every time the object is teleported
  15.         {
  16.             llOwnerSay("Teleport Detected - Detected list Reset");
  17.             Detected_UUIDs = [];        
  18.             state three;
  19.         }
  20.     }
  21.  
  22.     state_entry()
  23.     {
  24.         llSetObjectDesc("");
  25. //        llOwnerSay("Count: " + (string)GetKeyCount());
  26.         state one;
  27.  
  28.     }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement