2018-07-30 09:22:14 +00:00
|
|
|
#include "script_component.hpp"
|
2016-07-15 10:23:47 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Patient IV Treatment callback
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The medic <OBJECT>
|
|
|
|
* 1: The patient <OBJECT>
|
2016-12-14 11:36:51 +00:00
|
|
|
* 2: Body part <STRING>
|
|
|
|
* 3: Treatment class name <STRING>
|
|
|
|
* 4: Item <STRING>
|
2016-07-15 10:23:47 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Succesful treatment started <BOOL>
|
|
|
|
*
|
2019-03-30 16:07:54 +00:00
|
|
|
* Public: No
|
2016-07-15 10:23:47 +00:00
|
|
|
*/
|
|
|
|
|
2016-12-14 11:36:51 +00:00
|
|
|
params ["_caller", "_target", "_bodyPart", "_className", "_items"];
|
2016-07-15 10:23:47 +00:00
|
|
|
|
2016-09-18 10:05:36 +00:00
|
|
|
if (_items isEqualTo []) exitWith {false};
|
2016-07-15 10:23:47 +00:00
|
|
|
|
2016-09-18 10:05:36 +00:00
|
|
|
_items params ["_removeItem"];
|
2016-10-05 22:54:57 +00:00
|
|
|
|
2016-12-14 11:36:51 +00:00
|
|
|
[QGVAR(treatmentIVLocal), [_target, _className, _bodyPart], _target] call CBA_fnc_targetEvent;
|
2016-07-15 10:23:47 +00:00
|
|
|
|
|
|
|
[_target, _removeItem] call FUNC(addToTriageCard);
|
2018-07-18 21:19:27 +00:00
|
|
|
[_target, "activity", ELSTRING(medical_treatment,Activity_gaveIV), [[_caller, false, true] call EFUNC(common,getName)]] call FUNC(addToLog);
|
|
|
|
[_target, "activity_view", ELSTRING(medical_treatment,Activity_gaveIV), [[_caller, false, true] call EFUNC(common,getName)]] call FUNC(addToLog); // TODO expand message
|
2016-07-15 10:23:47 +00:00
|
|
|
|
|
|
|
true
|