ACE3/addons/medical/functions/fnc_canTreatCached.sqf

23 lines
570 B
Plaintext
Raw Normal View History

2015-03-21 15:33:14 +00:00
/*
* Author: Glowbal
* Cached Check if the treatment action can be performed.
*
* Arguments:
* 0: The caller <OBJECT>
* 1: The target <OBJECT>
* 2: Selection name <STRING>
* 3: ACE_Medical_Treatments Classname <STRING>
*
* ReturnValue:
* Can Treat <BOOL>
*
* Public: No
*/
#include "script_component.hpp"
2015-03-21 15:47:51 +00:00
#define MAX_DURATION_CACHE 2
2015-03-21 15:33:14 +00:00
// parameters, function, namespace, uid
[_this, DFUNC(canTreat), _this select 1, format[QGVAR(canTreat_%1_%2), _this select 2, _this select 3], MAX_DURATION_CACHE, "clearConditionCaches"] call EFUNC(common,cachedCall);