bdhtrn

dicetoss

May 11th, 2011
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. doit(){
  2.     float rForce = llFrand(5*llGetMass())+7*llGetMass();
  3.     float rRot1 = llFrand(3*llGetMass())-1.5*llGetMass();
  4.     float rRot2 = llFrand(3*llGetMass())-1.5*llGetMass();
  5.     float rRot3 = llFrand(3*llGetMass())-1.5*llGetMass();
  6.     llApplyImpulse(<0,0,rForce>, 0);
  7.     llApplyRotationalImpulse(<rRot1,rRot2,rRot3>,TRUE);
  8. }
  9.  
  10. default{
  11.     state_entry(){
  12.         llSetStatus(STATUS_PHYSICS, TRUE);
  13.         llListen(-65492,"deuce","","");
  14.     }
  15.     listen(integer chan,string who,key id,string msg){
  16.         if(msg=="hup")
  17.             doit();
  18.     }
  19.     touch_end(integer total_number){
  20.         llShout(-65492,"hup");
  21.         doit();
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment