PDA

View Full Version : Playing an animation after each shot with bolt-action rifles?



Yakavetta
Sep 13 2009, 15:31
I'm trying to get this animation I've got to play after each shot of a bolt action. Currently, when I press "R" to reload, it'll play just fine, but I can't figure out how to make it play automatically after each shot.

Odds are I'm doing it wrong. What I'm doing now is calling the animations under here:


class CfgMovesBasic
{
class Default;
};
class CfgMovesMaleSdr : CfgMovesBasic
{
};
class cfgmovesjin : CfgMovesMaleSdr

I've created a skeleton class to call for the parts of the model, and I've created the parts of the model as a group within O2.

I just don't know how to make the animations play automatically when each round is fired. Any advice would be greatly appreciated!

PuFu
Sep 14 2009, 01:16
you could always try and use that animation via an event handler Fired
http://community.bistudio.com/wiki/ArmA:_Event_Handlers#Fired

You might wanna check aditional events in CBA, but that one would do i belive

Yakavetta
Sep 14 2009, 03:08
That will only work for each mission, though, and each soldier the EH is attached to, wont it? What if I want it for the model? I've got animations and everything sorted, I think I'm just coding my config wrong.

---------- Post added at 03:08 AM ---------- Previous post was at 01:58 AM ----------

I think I have an idea on how to go about this now. Right now I have the animation tied to "reloadmagazine." I'm going to try and link it to the trigger pull instead, and see how that plays out.