Advertisement
salahzar

ricezione

Jan 27th, 2022
2,498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // recezione di coordinate per posizionamento oggetti slinkati
  2. //vector message;
  3.  
  4. //inizializza la facciata di puntamento sul prim BASE
  5. startup()
  6. {
  7.         llSetStatus(STATUS_ROTATE_Z,TRUE);
  8.         llSensorRemove();
  9.         llSensorRepeat("progetto SPOSTAMENTO OGGETTI SLINKATI","",ACTIVE | PASSIVE,200,2*PI,2);
  10.          llListen(-476587, "", NULL_KEY, "" );
  11. }
  12. default
  13. {
  14.      state_entry()    
  15.       {    
  16.         startup();    
  17.        
  18.       }  
  19.      on_rez(integer start_param)
  20.     {
  21.         startup();
  22.     }      
  23.        
  24.     listen(integer channel, string name, key id, string message)  
  25.     {  
  26. //legge eventuali messaggi di spostamento dal prim BASE e posiziona loggetto slinkato nella nuova posizione      
  27.      vector nuovaposizione = (vector)message;
  28.        llSetRegionPos(nuovaposizione);
  29.       }
  30.        
  31.     sensor(integer total_number)
  32.     {
  33. //mantiene l'orientamento della facciata sul prim BASE se viene ruotato
  34.          
  35.         vector pos = llDetectedPos(0);
  36.         llLookAt(pos, .1 , 1);
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement