Jump to content
FunnyCookieEver

Condition to check unit damage

Recommended Posts

Hi, was wondering how to check unit for ACE damage specifically, not for vanilla damage, it doesn't work.

There is info everywhere on how to add damage to unit (ace_medical_engine_fnc_damageBodyPart) etc. but not on how to get it.

 

https://github.com/acemod/ACE3/blob/master/addons/medical_engine/functions/fnc_handleDamage.sqf searched here for info, but no luck.

As I understand this stuff is stored in those:
_unit getVariable [QGVAR($HitLeftArm), [0,0]];
_unit getVariable [QGVAR($HitRightArm), [0,0]];
_unit getVariable [QGVAR($HitLeftLeg), [0,0]];
_unit getVariable [QGVAR($HitRightLeg), [0,0]]

_unit getVariable [QGVAR($HitPelvis), [0,0]],
_unit getVariable [QGVAR($HitAbdomen), [0,0]],
_unit getVariable [QGVAR($HitDiaphragm), [0,0]],
_unit getVariable [QGVAR($HitChest), [0,0]]

But I have no clue how to get data from those to check if player has healed the unit.
In my case I'm making generated task to heal a unit, but how to check if if the unit was succesfully healed?

 

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

×