Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script reset on click

Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
06-24-2004 21:29
Is there a way to get a script to reset by clicking the object instead of having to go into Edit/Reset?

Thanks
Ama Omega
Lost Wanderer
Join date: 11 Dec 2002
Posts: 1,770
06-24-2004 21:32
CODE
touch_start(integer num)
{
if(llDetectedKey() == llGetOwner() ) llResetScript();
}
Note: This won't work obviously if your script uses touches for anything else.
_____________________
--
010000010110110101100001001000000100111101101101011001010110011101100001
--
Rhysling Greenacre
Registered User
Join date: 15 Nov 2003
Posts: 132
06-24-2004 21:34
Call llResetScript() in the touch_start event handler.