ACE3/addons/medical/functions/fnc_handleCollisionDamage.sqf

15 lines
284 B
Plaintext
Raw Normal View History

// by commy2
#include "script_component.hpp"
params ["_unit", "_newDamage"];
private ["_selection", "_totalDamage"];
_selection = "body";
_totalDamage = (_unit getHit _selection) + _newDamage;
_unit setHit [_selection, _totalDamage];
systemChat format ["collision: %1", _this];