Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer channel=55; // Channel to listen on
  2.  
  3. default
  4. {
  5.     state_entry()
  6.     {
  7.         llSay(0, "READY");
  8.         llListen(channel, "","","");
  9.        
  10.     }
  11.  
  12.     listen(integer channel, string name, key id, string message)
  13.     {
  14.         if (message == "Sky")  // On receiving msg "Sky"...
  15.         {
  16.             llOwnerSay("IP "+(string)llGetPos());
  17.             llSetPos(llGetPos()+<0.0, 0.0, 0.1>); // you can eliminate a global variable      
  18.             llOwnerSay("FP "+(string)llGetPos());
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement