1) Record the current position of the object
2) Turn on physics of the Object it is in
3) Wait for several seconds
4) Put it back into the recorded position.
Here is the Code:
vector startPos;
vector curPos;
integer second;
vector position;
default
{
state_entry()
{
llSetStatus( 1, FALSE ); // turn off physics.
startPos = llGetPos();
}
touch_start(integer total_number)
{
startPos = llGetPos();
curPos = startPos;
llSetStatus(1,TRUE);
llSetTimerEvent(1);
second = 0;
}
timer() // do these instructions every time the timer event occurs.
{
second++;
curPos = llGetPos();
if ( second > 5 ) // then time to wrap this up.
{
// move object back to starting position...
{
llSetPos(startPos);
}
llSetTimerEvent( 0 ); // turn off timer events.
llResetScript(); // return object to ready state
}
}
}
-------
I think it must be a rather simple mistake, but I dont get it

When I click on the object, it turns physics on, which makes it drop. That's just perfect. But it does not get back into the position it was in, before I clicked on it.
Thanks for helping.
