Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list targets = [];
  2. string stationname = "Station1";
  3. vector stationpos = <1,2,3>;
  4.  
  5.  
  6. default
  7. {
  8.     state_entry() {
  9.     }
  10.  
  11.     touch_start(integer total_number)
  12.     {
  13.         //Non-pseudocode version if you get 2 you didnt code the for loop right
  14.         /*list can try make local do here */        targets=targets+[stationname]+[stationpos];
  15.         llSay(0, (string)llGetListLength(targets));
  16.         //llSay(0, targets); <- Type error LSO & Mono both
  17.         integer i = 0;
  18.         integer length = llGetListLength(targets);
  19.         for(i=0; i<length;i++) {
  20.             llSay(0, llList2String(targets, i));
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement