Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question refering Mouselook and animation

Mephisto Brennen
No Copy / Mod / Transfer
Join date: 20 Jul 2006
Posts: 84
08-12-2008 13:35
Is there a way, if I go in mouselook, i can make my avatar do a different pose? I see it all the time in guns, but have no idea how it is scripted. Like when you go in mouselook, the avatar will aim automatically the gun.

I grabbed a linden labs revolver script, which had that. When i dont touch the script (or at least the animation part of it) it does work just fine, but when I changed the animation with an animation i made, it doesn't work anymore. It stays in the same position of the animation, even if i set the animations priority just to 1.

Anybody has a clue? Or do i have to add extra lines to the script?

Thanks in advance,

Mephisto
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-12-2008 17:26
I suspect that you aren't stopping the animation when the agent leaves mouselook, or you are stopping the wrong animation (the one the linden script originally played).
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
08-12-2008 19:12
SL has some "magic" animation pairs. The built-in hold_* are automatically changed to their aim_* counterparts when you go into mouselook, and back when you return to the normal view. It's all built into the viewer, so scripts made to use those won't have the animation start/stop calls.

The aim_* animations also get some additional movement assistance from the viewer, so that the avatar can track the crosshairs.

http://wiki.secondlife.com/wiki/Internal_Animations for the list.
_____________________