Jump to content
Play3r

Make Ai play animation after being healed by player

Recommended Posts

I want to make a MP mission for some friends and i want to make so a player has to heal a AI that have been shoot.

 

I have <pilot setdamage 0.8> on the AI unit (pilot) inside unit init field. without the <> :)

and this inside his INIT also [pilot, "PRONE_INJURED_U2", "ASIS"] call BIS_fnc_ambientAnim;

 

I have a trigger that has this in COND:

damage pilot ==0.2  ( i have read somewhere on the WIKI that a medikit heals 0.75 %)

 

on ACT : 

pilot switchmove "UnconsciousReviveDefault_B";

 

have also tried

pilot playmove "UnconsciousReviveDefault_B";

 

and

 pilot playmovenow "UnconsciousReviveDefault_B";

 

He does not play the last animation, do i need something more to make it work ??

Share this post


Link to post
Share on other sites
Quote

damage pilot ==0.2  ( i have read somewhere on the WIKI that a medikit heals 0.75 %)


Your Pilot dude will have 0.25 damage after healing. :icon_biggrin:

Also I noticed that after switchMove command he will change his direction. On ACT (replace yours):
_dir=getDir pilot;

pilot switchmove "UnconsciousReviveDefault_B";

pilot setDir (_dir+180);

 

Cheers.

Share this post


Link to post
Share on other sites
21 hours ago, SerbiX8 said:


Your Pilot dude will have 0.25 damage after healing. :icon_biggrin:

Also I noticed that after switchMove command he will change his direction. On ACT (replace yours):
_dir=getDir pilot;

pilot switchmove "UnconsciousReviveDefault_B";

pilot setDir (_dir+180);

 

Cheers.

Thanks for the help but i must be dumb i can't get it to work. 

i have tried in VR with only a player and a AI

Player is nato combat life saver

 

Ai has in init field : [pilot, "PRONE_INJURED_U2", "ASIS"] call BIS_fnc_ambientAnim;
pilot setdamage 0.8

 

I have a trigger with 

COND : damage pilot ==0.25

ON ACT : pilot switchmove "UnconsciousOutProne"; 

 

but AI keeps laying on his back  do i need to use this one:

pilot call BIS_fnc_ambientAnim__terminate;

somewhere in the trigger also i have tried it ON ACT but no joy.

 

do you have any ideas what i need i will be glad to read about it.

 

Cheers.

 

Share this post


Link to post
Share on other sites

If the player is a combat life saver, he may be using medikit insted of a FAK.

2 hours ago, Play3r said:

COND : damage pilot ==0.25

Your trigger fires only when pilot's damage is equal to 0.25.

Try this in COND: damage pilot<=0.25

 

I think that's what causing the problem.

 

Cheers.

Share this post


Link to post
Share on other sites

thanks for the reply, but it will not work for me. Any chance i can send you a sample mission of what i have done.

so you can see what i have done "up close"  :dozingoff:

 

cheers

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

×