Search the Community
Showing results for tags 'resetscript'.
-
Hello: Need a little help. I have two scripts in a a mesh text that rotates around an object. One script is for the rotation. The other script is to blink the bright texture on/off. This script has llresetscripr in it. For some reason, the reset script in this blinker script is resetting the rotation script and causing the rotation to reset to it's starting point per the blinker script timer. Why is it doing this as these are two totes different scripts? If I // the llsleep & llresetscrip the blinker script does one off/on timer cycle, stops and stays on bright but the rotation script will works fine. If I activate these commands, it resets the rotation script. again The blinker script works on its own in a test cube. Thank you for the help. ROTATION SCRIPT //Z axis / slow rotate clockwise/toward left default { state_entry() { // when script starts.. llTargetOmega(<0.0,0.0,-0.03>,PI,1.0); // do a rotation movement in z axis. Y and Z is set to 0. } } BLINKER SCRIPT // Set here how quick the sign should blink. It blinks now every 2.0 seconds float blinkrate = 2.0; // Under this line there is no need to change anything default { state_entry() { llSetTimerEvent(blinkrate); llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,TRUE ]); } timer() { llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE ]); llSleep(2.0); llResetScript(); } }