Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem of reset with a sleep script

Ale Etzel
Registered User
Join date: 2 May 2007
Posts: 3
10-19-2009 01:25
Hi all,
i'm quite new at script and using a script that have several sleeps states. My problem is to reset it sometimes like i do easily with the menu viewer.

I m trying with the llResetOtherScript function that work perfectly but only if the main script is not sleeping :(.

I use the sleep becouse i load several times sleep from a notecard and find this an easy way.

Any idea how reset a sleep state script?
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
10-19-2009 02:14
first of all sleep is not a state in the LSL sense.
Sleep suspends the script for a time. During that time the script is 'dead'. It will not handle events or do anything except wait for the sleep to end.
If you need a live script, a script that will respond to an event during a pause, use 'llSetTimerEvent' and 'timer'.
_____________________
From Studio Dora