mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
15 lines
283 B
Plaintext
15 lines
283 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit", "_newDamage"];
|
|
|
|
private ["_selection", "_totalDamage"];
|
|
|
|
_selection = "head";
|
|
|
|
_totalDamage = (_unit getHit _selection) + _newDamage;
|
|
|
|
_unit setHit [_selection, _totalDamage];
|
|
|
|
systemChat format ["drowning: %1", _this];
|