ACE3/addons/medical/functions/fnc_onWoundUpdateRequest.sqf
2015-08-22 16:25:10 +02:00

25 lines
553 B
Plaintext

/*
* Author: Glowbal
* Handles an wound update request.
*
* Arguments:
* 0: The Unit <OBJECT>
* 1: Origin object <OBJECT>
*
* ReturnValue:
* None
*
* Public: Yes
*/
#include "script_component.hpp"
private ["_unit", "_openWounds", "_originOfrequest"];
params ["_unit", "_originOfrequest"];
if (local _unit && !(local _originOfrequest)) then {
_openWounds = _unit getvariable [QGVAR(openWounds), []];
{
["medical_propagateWound", [_originOfrequest], [_unit, _x]] call EFUNC(common,targetEvent);
} foreach _openWounds;
};