Jump to content
Sign in to follow this  
twisted

how to subsitute on animation for another

Recommended Posts

hi. i would like to try an experiment to see if there's a way to correct the strange way of AI/players firing the m240/pkm when standing by putting the machinegun up to their face.

first of all: would like to swap the holding machinegun up animation for the machinegun being held from the hip.

is it possible and if someone could let me know how?

once that's done i'd like to see how the ai responds to the new firing position.

Share this post


Link to post
Share on other sites

Its possible, but you can't do it (as far as I know) on a weapon-by-weapon basis, and as a result, swapping the animation, would swap it no matter what weapon the unit(s) was holding. That would cause more problems than its worth in my opinion.

Share this post


Link to post
Share on other sites
Its possible, but you can't do it (as far as I know) on a weapon-by-weapon basis, and as a result, swapping the animation, would swap it no matter what weapon the unit(s) was holding. That would cause more problems than its worth in my opinion.

thanks for taking the time to reply. guess i'll have to keep thinking then.

cheers.

Share this post


Link to post
Share on other sites

You can easily make it weapon specific by calling the unit's primary weapon using "primaryWeapon". Incorporate this into a script using an animation eventhandler to detect when the unit is in the position you want to change. The real secret is to properly configure the new animation so that it doesn't lock up the unit. As far as I know it is possible, but no one has actually bothered doing it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×