Jump to content

Xenon Engineer

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 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.
  2. 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.
×
×
  • Create New...