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:
|
|
|
|
* <NIL>
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
2015-04-30 06:17:26 +00:00
|
|
|
private ["_unit", "_openWounds", "_originOfrequest"];
|
2015-03-01 11:33:05 +00:00
|
|
|
_unit = _this select 0;
|
2015-04-14 19:17:36 +00:00
|
|
|
_originOfrequest = _this select 1;
|
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);
|
|
|
|
}foreach _openWounds;
|
2015-03-01 11:33:05 +00:00
|
|
|
};
|