ACE3/addons/medical/functions/fnc_handleCollisionDamage.sqf
Dedmen Miller 81e02a7336 Refactor private ARRAY to private keyword (#5598)
* Everything

* Fixed missing ;

* Fix missing ; and double private

* Fixed cannot isNull on number

* Turn _temparture back to isNil

* Fix error from merge
2017-10-10 09:39:59 -05:00

29 lines
453 B
Plaintext

/*
* Author: commy2
*
*
* Arguments:
* 0: Unit <OBJECT>
* 1: New Damage <SCALAR>
*
* Return Value:
* None
*
* Example:
* [bob, 2] call ACE_medical_fnc_handleCollisionDamage
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit", "_newDamage"];
private _selection = "body";
private _totalDamage = (_unit getHit _selection) + _newDamage;
_unit setHit [_selection, _totalDamage];
systemChat format ["collision: %1", _this];