mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a8831a0d16
- medical component is responsible for the injuries and common functionality - medical_treatment component is responsible for offering treatment functionality
24 lines
608 B
Plaintext
24 lines
608 B
Plaintext
/*
|
|
* 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"
|
|
|
|
#define MAX_DURATION_CACHE 2
|
|
params ["", "_target", "_selection", "_classname"];
|
|
|
|
// parameters, function, namespace, uid
|
|
[_this, DFUNC(canTreat), _target, format [QGVAR(canTreat_%1_%2), _selection, _classname], MAX_DURATION_CACHE, "clearConditionCaches"] call EFUNC(common,cachedCall);
|