2016-07-15 10:23:47 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
2016-12-14 11:36:51 +00:00
|
|
|
* Bandage treatment callback
|
2016-07-15 10:23:47 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The medic <OBJECT>
|
|
|
|
* 1: The patient <OBJECT>
|
2016-10-05 22:54:57 +00:00
|
|
|
* 2: Body part <STRING>
|
|
|
|
* 3: Treatment class name <STRING>
|
2016-07-15 10:23:47 +00:00
|
|
|
* 4: Item <STRING>
|
|
|
|
* 5: specific Spot <NUMBER> (default: -1)
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Succesful treatment started <BOOL>
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-10-05 22:54:57 +00:00
|
|
|
params ["_caller", "_target", "_bodyPart", "_className", "_items", "", ["_specificSpot", -1]];
|
2016-07-15 10:23:47 +00:00
|
|
|
|
|
|
|
[_target, "activity", ELSTRING(medical,Activity_bandagedPatient), [[_caller, false, true] call EFUNC(common,getName)]] call FUNC(addToLog);
|
|
|
|
[_target, "activity_view", ELSTRING(medical,Activity_bandagedPatient), [[_caller, false, true] call EFUNC(common,getName)]] call FUNC(addToLog); // TODO expand message
|
|
|
|
|
2016-10-05 22:54:57 +00:00
|
|
|
[QGVAR(treatmentBandageLocal), [_target, _className, _bodyPart, _specificSpot], _target] call CBA_fnc_targetEvent;
|
2016-07-15 10:23:47 +00:00
|
|
|
|
2016-10-05 22:54:57 +00:00
|
|
|
/*{
|
2016-07-15 10:23:47 +00:00
|
|
|
if (_x != "") then {
|
|
|
|
[_target, _x] call FUNC(addToTriageCard);
|
|
|
|
};
|
2016-10-05 22:54:57 +00:00
|
|
|
} forEach _items;*/
|
2016-07-15 10:23:47 +00:00
|
|
|
|
2016-10-05 22:54:57 +00:00
|
|
|
true
|