Xenon Engineer
-
Posts
2 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Posts posted by Xenon Engineer
-
-
So I'm pretty bad at the whole scripting thing and just usually fit existing scripts to do what I need for personal use.
Unfortunately I ran into a stump when I'm getting tired of taking an object off to stop an animation.
I was wondering if someone could help make a script with the same function or repurpose this existing one to have a toggle on touch. I've tried different ways but with my limited knowledge I couldn't quite make it turn on and off.
Here it is the way it was.
default { state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); } on_rez(integer start_param) { llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStopAnimation("Animation"); llSetTimerEvent(0.05); } } timer() { llSetTimerEvent(0); llStartAnimation("Animation"); llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION); } }
Any help to make this happen would be greatly appreciated as it'd help very much as it's for personal use and it would just make things way easier.
I want it to stay looping ontop of certain animations like AOs and such.
Making a Animation loop script toggle.
in LSL Scripting
Posted
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.
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.