Advertisement
Dorex

Untitled

Aug 2nd, 2023
2,159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     sensor(integer n)
  2.     {
  3.         key owner = llGetOwner();
  4.    
  5.         while(~--n)
  6.         {
  7.             key detectedKey = llDetectedKey(n);
  8.             if ( detectedKey != owner  )
  9.             {
  10.                 integer i;
  11.  
  12.                 for(; i <= n && detectedKey != NULL_KEY; ++i) {
  13.                     llRezObject("[ Wind Particle Effect ]",llDetectedPos(i) + llDetectedVel(i) / 4,-llDetectedVel(i),<0,0,0,0>,1);
  14.                     llOwnerSay("Detected " + llKey2Name(detectedKey ));
  15.                 }
  16.                 llSetTimerEvent(1);
  17.             }
  18.         }
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement