Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Discussion: ~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
Original Thread
06-29-2007 00:17
/15/7d/191500/1.html
_____________________
i've got nothing. ;)