2015-03-01 11:33:05 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
2015-04-14 19:17:36 +00:00
|
|
|
* Handles an wound update request.
|
2015-03-01 11:33:05 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
2015-04-14 19:17:36 +00:00
|
|
|
* 1: Origin object <OBJECT>
|
2015-03-01 11:33:05 +00:00
|
|
|
*
|
|
|
|
* ReturnValue:
|
2015-08-22 14:25:10 +00:00
|
|
|
* None
|
2015-03-01 11:33:05 +00:00
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
2015-04-30 06:17:26 +00:00
|
|
|
private ["_unit", "_openWounds", "_originOfrequest"];
|
2015-08-22 14:25:10 +00:00
|
|
|
params ["_unit", "_originOfrequest"];
|
2015-03-01 11:33:05 +00:00
|
|
|
|
2015-04-14 19:17:36 +00:00
|
|
|
if (local _unit && !(local _originOfrequest)) then {
|
2015-11-30 16:27:09 +00:00
|
|
|
_openWounds = _unit getVariable [QGVAR(openWounds), []];
|
2015-04-06 16:22:43 +00:00
|
|
|
{
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_medical_propagateWound", [_unit, _x], [_originOfrequest]] call CBA_fnc_targetEvent;
|
2015-11-30 16:23:48 +00:00
|
|
|
} forEach _openWounds;
|
2015-03-01 11:33:05 +00:00
|
|
|
};
|