Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doit(){
- float rForce = llFrand(5*llGetMass())+7*llGetMass();
- float rRot1 = llFrand(3*llGetMass())-1.5*llGetMass();
- float rRot2 = llFrand(3*llGetMass())-1.5*llGetMass();
- float rRot3 = llFrand(3*llGetMass())-1.5*llGetMass();
- llApplyImpulse(<0,0,rForce>, 0);
- llApplyRotationalImpulse(<rRot1,rRot2,rRot3>,TRUE);
- }
- default{
- state_entry(){
- llSetStatus(STATUS_PHYSICS, TRUE);
- llListen(-65492,"deuce","","");
- }
- listen(integer chan,string who,key id,string msg){
- if(msg=="hup")
- doit();
- }
- touch_end(integer total_number){
- llShout(-65492,"hup");
- doit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment