Jump to content
Sign in to follow this  
boby91

Enemy to anim. after hit

Recommended Posts

Hi, I've little problem with script, which you can see. When someone hit unit, he swich to animation (injured) and someone can arrest him.  Its working on pc, where is mission running, but others dont see the animation.. for them is the unit only stuck in some weird position and also, they cant use action on the unit "zvednout", which terminate animation and allow this unit move with us. I think its problem of global/local issue..

 

this addEventHandler ["hit",{[unit1,"PRONE_INJURED",""] call BIS_fnc_ambientAnim;unit1 addaction ["Zvednout","unit1 call BIS_fnc_ambientAnim__terminate"];}];

Share this post


Link to post
Share on other sites

So i solve this :) I had to use MPEventHandler with MPHit..  but still is problem with ending injured animation. So I used trigger, where is condition: captive unit1 and onact: unit1 call BIS_fnc_ambientAnim__terminate.. It works fine now.

 

Share this post


Link to post
Share on other sites

Thanks for reporting your fix. It can help others as well......

 

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  

×