JymResident

Rezzed object message owner

Apr 3rd, 2021 (edited)
321
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. key parent_key = NULL_KEY;
  2. key toucher = NULL_KEY;
  3.  
  4. default{
  5.     on_rez(integer r){
  6.         llResetScript();
  7.     }
  8.     state_entry(){
  9.         // Get the key of the object that rezzed us
  10.         list details = llGetObjectDetails( llGetKey(), [OBJECT_REZZER_KEY]);
  11.         parent_key = llList2Key(details, 0);
  12.         // Now get the description of the rezzer
  13.         list desc = llGetObjectDetails(parent_key, [OBJECT_DESC]);
  14.         toucher = llList2Key(desc, 0);
  15.         // IM the owner the uuid of the person who violated me
  16.         llInstantMessage(llGetOwner(),"My rezzer was touched by "+(string)toucher);
  17.     }
  18. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×