Priya Blaisdale
Registered User
Join date: 28 Jul 2008
Posts: 53
|
09-20-2009 17:42
Can someone tell me how to change a simple curtain script to open and close on a timer, instead of touch.
|
EF Klaar
Registered User
Join date: 11 Jun 2007
Posts: 330
|
09-20-2009 18:25
Make sure you have made a backup copy of your script before you try this!
If scripts were perfect you'd only need to rename the touch event from
touch_start (integer num_detected)
to
timer ()
and add the line
llSetTimerEvent (10.0);
to inside the state_entry event, somewhere after the opening curly bracket "{".
It is likely that the touch event code uses the touch parameter num_detected, in which case the script won't compile. If that happens it'd probably be best if you posted the whole (original) script here.
|