Files
DayZ-Epoch/dayz_code/compile/object_getHit.sqf
Aaron Clark 76e9a0582e 0.1
2012-11-04 20:28:50 -06:00

7 lines
273 B
Plaintext

private["_unit","_hp","_selection","_strH","_dam"];
_unit = _this select 0;
_hp = _this select 1;
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _unit) >> "HitPoints" >> _hp >> "name");
_strH = "hit_" + (_selection);
_dam = _unit getVariable [_strH,0];
_dam