ACE3/addons/medical/functions/fnc_requestWoundSync.sqf

23 lines
609 B
Plaintext
Raw Normal View History

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
if (_target getVariable [QGVAR(isWoundSynced), false]) exitWith {};
_target setVariable [QGVAR(isWoundSynced), true];
["medical_woundUpdateRequest", [_target], [_target, _caller]] call EFUNC(common,targetEvent);