Jump to content

Usoni

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. Very helpful! Thank you! it solved half of my issue with having to click to get it to start, however now it attaches just fine and gets the new permission. But it cycles one time through llsay only. (no sounds or animatations). goes through and starts again and then runs exactly how it I want it with the llSay, llStartAnimation and llTriggerSound and then detatches just as it should. The information you gave me definately solved the issue of the animations and sounds not starting at all. They do work now but only after it cycles though once with just the llSay first. I am trying to get it to start the run_time_permissions event the first time with the animations and sounds. string best_dance = "Best Dance ever Discord"; // dance string i_fart = "41068d19-c83b-1a7e-dec2-2841e521dd4b"; //sound default { touch_start(integer num) { if (!llGetAttached()) llRequestPermissions( llDetectedKey(0), PERMISSION_ATTACH); else if ( llGetPermissions() & PERMISSION_ATTACH) llDetachFromAvatar(); } attach(key id) { if (id) llRequestPermissions( id, PERMISSION_ATTACH | PERMISSION_TRIGGER_ANIMATION); } run_time_permissions (integer perm) { if (!llGetAttached() && (perm & PERMISSION_ATTACH)) llAttachToAvatarTemp( ATTACH_HUD_CENTER_2); llSleep(3.0); llSay(0, "starting animation"); if (perm & PERMISSION_TRIGGER_ANIMATION) llStartAnimation(best_dance); llSleep(2.0); llSay(0, "starting sound"); llTriggerSound(i_fart, 1.0); llSleep(10.0); llSay(0, "stopping animation"); llStopAnimation(best_dance); llSleep(10.0); llSay(0, "detaching from avatar"); llGetPermissions(); llDetachFromAvatar(); } on_rez(integer rez) { if (!llGetAttached()) { llResetScript(); } llSleep(3.0); llDetachFromAvatar(); } }
  2. I'm trying to make a temp attachment that will run animations and sounds. I have it scripted when touched it will ask permission and attach to HUD. I am trying ot make it a temp attachment that will detach after time. when i try to run it for myself it works perfectly , but when i test it on another avi it will ask permissions, attach fine and start the sounds but it will NOT run the animation. It will run thought the sequence and stop and NOT detach. BUT when I touch the hud again while it is attached it will start from tthe beginning and run peferctly, sounds, animations and then detach. I cant seem to get it to run corretly from the start without having it run though once and then having to touch it. this HUD has 4 linked prims and all the scripts and animations are in the root. I am using a uuid for the sound and the animation is in the root prim. Please forgive me I am very new to scripting and am finding it fascinating but this has had me stumped for days. string best_dance = "Best Dance ever Discord"; // dance string i_fart = "41068d19-c83b-1a7e-dec2-2841e521dd4b"; //sound default { touch_start(integer num_touches) { llRequestPermissions( llDetectedKey(0), PERMISSION_ATTACH | PERMISSION_TRIGGER_ANIMATION); } run_time_permissions( integer vBitPermissions ) { if( vBitPermissions & PERMISSION_ATTACH | PERMISSION_TRIGGER_ANIMATION) { llSleep(3.0); llAttachToAvatarTemp( ATTACH_HUD_CENTER_2 ); llSleep(3.0); llOwnerSay("testing animation"); llStartAnimation(best_dance); llSleep(2.0); llTriggerSound(i_fart, 1.0); llSleep(10.0); llStopAnimation(best_dance); llSay(0, "dance stopped"); llSleep(10.0); llGetPermissions(); llDetachFromAvatar(); } else { llOwnerSay( "Permission to attach denied" ); } } on_rez(integer rez) { if(!llGetAttached()) { llResetScript(); } llSleep(3.0); llDetachFromAvatar(); } }
×
×
  • Create New...