Advertisement
Jym_Nova

Rezzed object message owner

Apr 3rd, 2021 (edited)
1,375
0
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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement