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-04-06 16:22:43 +00:00
|
|
|
_openWounds = _unit getvariable [QGVAR(openWounds), []];
|
|
|
|
{
|
|
|
|
["medical_propagateWound", [_originOfrequest], [_unit, _x]] call EFUNC(common,targetEvent);
|
2015-08-22 14:25:10 +00:00
|
|
|
} foreach _openWounds;
|
2015-03-01 11:33:05 +00:00
|
|
|
};
|