ACE3/addons/medical/functions/fnc_onWoundUpdateRequest.sqf

25 lines
551 B
Plaintext
Raw Normal View History

/*
* Author: Glowbal
* Handles an wound update request.
*
* Arguments:
* 0: The Unit <OBJECT>
* 1: Origin object <OBJECT>
*
* ReturnValue:
2015-08-22 14:25:10 +00:00
* None
*
* 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"];
if (local _unit && !(local _originOfrequest)) then {
_openWounds = _unit getVariable [QGVAR(openWounds), []];
{
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;
};