Jump to content
Sign in to follow this  
bardosy

AI medic (not team member) heal unconscious player?

Recommended Posts

I created a mission and create a special medic script to it. It means, the camp have a unarmed, captive, medic alone (not in any other group) and if someone is wounded, he runs there and heal him.

But I use First Aid module and when I get shot, my state is change unconscious. The medic run to me and try to heal me by the script (not really heal, just do the animation and setDamage 0). Of course, the unconscious state didn't change. So I use setUnconscious false, but I read it's client side only (and this is a coop mission), so I put a trigger on the mission:

condition: lifeState player == "UNCONSCIOUS" and (player distance ukmedic1 < 2)

onActivation: player setUnconscious false; player setDamage 0;

And it triggered a strange action: When I got shot, I lost my commander position and start agonize with red blur. Then independent AI medic run for me. I got my commander status back, but stay in unconscious state with red blur and cannot use aim optic, cannot reload, but my hand didn't shake.

How could I give the player state back from unconscious?

Or - it could be better, but far as I read this forum I don't believed in - how can I script an independent medic to heal properly a FirstAid wound soldier?

Note: it's in vanilla ArmA2CO without any MOD.

EDIT:

I tried this too:

player action ["heal", ukmedic1]

But it still not working with FA module.

Edited by bardosy

Share this post


Link to post
Share on other sites

Well, so it's mean, this is impossible?

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  

×