So I have this, it works fine, I just can't get it to have an off function. Maybe I don't know enough but adding "else" just causes syntax errors.
integer on_off;default{ touch_start(integer detected) { llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { on_off = !on_off; if (on_off ==TRUE) { llStopAnimation("hip1"); llSetTimerEvent(0.02); } } timer() { llSetTimerEvent(0.1); llStartAnimation("hip1"); llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); }}
No idea how to make it have a stop function after that.
I need the timer from my knowledge to constantly loop the animation, to constantly keep it as the top animation, you know when you start walking it stops having priority.
This helps solve that problem for say, holding something.