2015-03-22 16:04:42 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Ask for the latest wound information.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The target <OBJECT>
|
|
|
|
* 1: object belonging to the caller <OBJECT>
|
|
|
|
*
|
|
|
|
* ReturnValue:
|
2015-08-22 17:47:23 +00:00
|
|
|
* None
|
2015-03-22 16:04:42 +00:00
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-22 17:47:23 +00:00
|
|
|
params [ "_target", "_caller"];
|
2015-03-22 16:04:42 +00:00
|
|
|
|
2015-11-30 16:14:05 +00:00
|
|
|
if (local _target || GVAR(level) < 2) exitWith {}; // if the target is local, we already got the most update to date information
|
2015-11-30 16:27:09 +00:00
|
|
|
if (_target getVariable [QGVAR(isWoundSynced), false]) exitWith {};
|
|
|
|
_target setVariable [QGVAR(isWoundSynced), true];
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_medical_woundUpdateRequest", [_target, _caller], [_target]] call CBA_fnc_targetEvent;
|