Advertisement
salahzar

Script Palla fisica e temporanea metti in piano inclinato

Feb 17th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer life;
  2. default
  3. {
  4.     state_entry()
  5.     {
  6.        
  7.        llListen(100,"",NULL_KEY,"");
  8.     }
  9.     on_rez(integer param){
  10.         llOwnerSay("Listening to channel "+(string)param);
  11.          llListen(param,"",NULL_KEY,""); // 100 is our channel
  12.          life=llGetUnixTime();
  13.     }
  14.     listen(integer channel,string name,key id,string command)
  15.     {
  16.         list l_cmds=llParseStringKeepNulls(command," ",[]);
  17.         string s_command=llToUpper(llList2String(l_cmds,0));
  18.         string s_arg=llList2String(l_cmds,1);
  19.         float f_arg=(float)s_arg;
  20.        // if(s_command=="DIE") llDie();
  21.         if(s_command=="SIZE"){
  22.             llSetScale(<f_arg,f_arg,f_arg>);
  23.         }
  24.      
  25.         llSay(0,"My mass is "+(string)llGetMass());
  26.        
  27.     }
  28.     collision(integer num)
  29.     {
  30.         integer i;
  31.         for(i=0;i<num;i++)
  32.         if(llDetectedName(i)=="piano sotto")
  33.         {
  34.             llSay(0, "Life: "+ (string)(llGetUnixTime() - life));
  35.             llDie();
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement