Guest User

Untitled

a guest
Sep 3rd, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sensor(integer numDetected) {
  2.         if (numDetected) {
  3.             nearbyNames = [];
  4.             nearbyKeys = [];
  5.            
  6.             integer i;
  7.             for(i=0; i < numDetected; i++) {
  8.                 nearbyNames = nearbyNames + [llDetectedName(i)];
  9.                 nearbyKeys = nearbyKeys + [llDetectedKey(i)];
  10.             }
  11.            
  12.             llDialog(SensorID, "Nearby avatars:", nearbyNames, channel_sensor);
  13.         }
  14.         else {
  15.             previousPage = "Owner";
  16.             llOwnerSay("Sorry, but there is nobody in range to add as an owner.");
  17.             llDialog(SensorID, "Sorry, but there is nobody in range to add as an owner.", ["<= Back"], channel_gag);
  18.         }
  19.     }
Add Comment
Please, Sign In to add comment