Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

~Bouncing Prim~

Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
06-17-2007 15:48
Here is a script to make a prim bounce off the gorund.
CODE

default
{
on_rez(integer x)
{

llResetScript();
}
state_entry()
{
llSetStatus(STATUS_PHYSICS,TRUE);
llSetStatus(STATUS_PHANTOM,TRUE);
llCollisionSound("c02681b3-52f3-dfa0-416b-3f414fb01aef",1);

}
land_collision_start(vector x)
{
llSetStatus(STATUS_PHYSICS,FALSE);
llSetPos(llGetPos() + <0,0,2>);
llSetStatus(STATUS_PHYSICS,TRUE);
}

}
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
06-29-2007 00:17
/54/db/194137/1.html
_____________________
i've got nothing. ;)
Cookie Juran
Registered User
Join date: 14 Mar 2007
Posts: 0
09-16-2007 20:58
From: Shippou Oud
Here is a script to make a prim bounce off the gorund.
CODE

default
{
on_rez(integer x)
{

llResetScript();
}
state_entry()
{
llSetStatus(STATUS_PHYSICS,TRUE);
llSetStatus(STATUS_PHANTOM,TRUE);
llCollisionSound("c02681b3-52f3-dfa0-416b-3f414fb01aef",1);

}
land_collision_start(vector x)
{
llSetStatus(STATUS_PHYSICS,FALSE);
llSetPos(llGetPos() + <0,0,2>);
llSetStatus(STATUS_PHYSICS,TRUE);
}

}



Thanks Whoever lol....script works awsome!
Cookie Juran
Registered User
Join date: 14 Mar 2007
Posts: 0
09-16-2007 20:59
This script works awsome...thanks
Brendan Cunningham
Registered User
Join date: 21 Sep 2004
Posts: 7
10-16-2007 11:04
Might also want to add a random direction vector so it goes in a direction. I made a popcorn object that bounces around while playing music