Files
DayZ-Epoch/SQF/dayz_code/compile/object_getHit.sqf
2020-09-12 21:21:55 +02:00

9 lines
247 B
Plaintext

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