I want to be able to roll a ball and have it come back to its original position after a set amount of time.
I tried using parts of the script given in this discussion, and it ALMOST works, but after the ball returns to the original position, the "Physical" box is no longer checked, so I cannot roll the ball again.
Anybody have any ideas?
Here is the script I am using:
vector gHome;
integer gHit;
default
{
touch_start(integer numr)
{
llSetTimerEvent(5.0);
gHome = llGetPos();
llSetRegionPos(gHome);
llResetTime();
}
timer()
{
llSetStatus(STATUS_PHYSICS,FALSE);
gHit = FALSE;
llSetRegionPos(gHome);
llSetTimerEvent(0.0);
}
}