Files
DayZ-Epoch/SQF/dayz_code/medical/publicEH/medMorphine.sqf
A Man 56787c71a0 Add new unit_setFractures function to handle better broken bones
- Removes old object_setHit
- Double checks if global broken bone variables are properly set after changing clothes.
- This should finally fix broken bones after changing clothes.
2022-06-03 20:48:52 +02:00

11 lines
429 B
Plaintext

local _unit = _this select 0;
local _medic = _this select 1;
local _item = _this select 2;
local _displayName = getText(configFile >> "CfgMagazines" >> _item >> "displayName");
[_unit,"legs",0,false,false] call unit_setFractures;
[_unit,"hands",0,false,false] call unit_setFractures;
if (_medic != player) then {
format [localize "str_actions_medical_general_received",(name _medic),_displayName] call dayz_rollingMessages;
};