Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
08-20-2009 12:18
ok, maybe i'm going about this the wrong way, but i'm wondering why i'm getting stuck. i'm using the below script to stop all animations but the one i want to play. for some reason, if i hit the jump button (pageup) the avatar doesn't even jump, and it locks me in place. i can still turn around, i just can't move from that spot. but if i sit on something and then unsit, i'm able to move around again. all other movement keys don't do this, even pageup/pagedown while flying. is there some thing in the viewer that the default jump anim needs to run for? key id; key animid; string anim;
animate() { anim = llGetInventoryName(INVENTORY_ANIMATION,0); animid = llGetInventoryKey(anim); list anims = llGetAnimationList(id); integer i; integer len = llGetListLength(anims); for(i;i < len ;++i) { string listanim = llList2String(anims,i); if(listanim != animid) { llStopAnimation(listanim); llOwnerSay(listanim); } } llStartAnimation(anim); }
default { on_rez(integer num) { if(llGetAttached()) { id = llGetOwner(); llRequestPermissions(id, PERMISSION_TRIGGER_ANIMATION); } else { llSetTimerEvent(0); } } run_time_permissions(integer perm) { animate(); llSetTimerEvent(.1); } timer() { animate(); } }
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
08-20-2009 12:39
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
08-20-2009 13:00
|