innula

Untitled

Dec 8th, 2012
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     state_entry()
  4.     {
  5.         llSay(0, "Hello, Avatar!");
  6.     }
  7.  
  8.     touch_start(integer total_number)
  9.     {
  10.        vector pos = (llDetectedPos(0)- llGetPos())/llGetRot();
  11.        llOwnerSay((string)pos.x);
  12.        if(pos.x>0){
  13.            llOwnerSay("In front");
  14.         }
  15.         else if (pos.x<0){
  16.             llOwnerSay("Behind");
  17.         }
  18.        
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment