ACE3/addons/medical/functions/fnc_handleCollisionDamage.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

31 lines
478 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", "_totalDamage"];
_selection = "body";
_totalDamage = (_unit getHit _selection) + _newDamage;
_unit setHit [_selection, _totalDamage];
systemChat format ["collision: %1", _this];