2018-07-30 09:22:14 +00:00
|
|
|
#include "script_component.hpp"
|
2016-07-15 10:23:47 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Apply a tourniquet to the patient, local callback.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The patient <OBJECT>
|
|
|
|
* 1: Item used classname <STRING>
|
2016-10-05 22:54:57 +00:00
|
|
|
* 2: Body part <STRING>
|
2016-07-15 10:23:47 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-10-05 22:54:57 +00:00
|
|
|
params ["_target", "_tourniquetItem", "_bodyPart"];
|
2016-07-15 10:23:47 +00:00
|
|
|
|
2016-10-05 22:54:57 +00:00
|
|
|
private _partIndex = ALL_BODY_PARTS find toLower _bodyPart;
|
2016-07-15 10:23:47 +00:00
|
|
|
|
|
|
|
// Place a tourniquet on the bodypart
|
2018-07-29 21:43:14 +00:00
|
|
|
private _tourniquets = GET_TOURNIQUETS(_target);
|
2016-10-05 22:54:57 +00:00
|
|
|
|
|
|
|
_tourniquets set [_partIndex, CBA_missionTime];
|
|
|
|
|
2018-07-29 21:43:14 +00:00
|
|
|
_target setVariable [VAR_TOURNIQUET, _tourniquets, true];
|
2019-04-27 19:12:11 +00:00
|
|
|
|
|
|
|
[_target] call EFUNC(medical_status,updateWoundBloodLoss);
|