ACE3/addons/medical_treatment/functions/fnc_canTreatCached.sqf
2019-03-30 11:07:54 -05:00

25 lines
715 B
Plaintext

#include "script_component.hpp"
/*
* 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_Treatment Classname <STRING>
*
* Return Value:
* Can Treat <BOOL>
*
* Example:
* [bob, kevin, "selection", "classname"] call ace_medical_treatment_fnc_canTreatCached
*
* Public: No
*/
params ["", "_target", "_selection", "_classname"];
// parameters, function, namespace, uid
[_this, DFUNC(canTreat), _target, format [QGVAR(canTreat_%1_%2), _selection, _classname], CAN_TREAT_CONDITION_CACHE_EXPIRY, QEGVAR(interact_menu,clearConditionCaches)] call EFUNC(common,cachedCall);