2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-02-21 20:26:39 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal
|
|
|
|
* Apply a tourniquet to the patient, local callback.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The patient <OBJECT>
|
|
|
|
* 1: Item used classname <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-22 17:47:23 +00:00
|
|
|
* None
|
2015-02-21 20:26:39 +00:00
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [bob, "classname"] call ACE_medical_fnc_treatmentTourniquetLocal
|
|
|
|
*
|
2015-02-21 20:26:39 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-09-03 13:49:49 +00:00
|
|
|
params ["_target", "_tourniquetItem", "_selectionName"];
|
2015-02-21 20:26:39 +00:00
|
|
|
|
2016-02-28 23:12:56 +00:00
|
|
|
//If we're not already tracking vitals, start:
|
|
|
|
[_target] call FUNC(addVitalLoop);
|
2015-02-21 20:26:39 +00:00
|
|
|
|
2016-06-13 00:34:56 +00:00
|
|
|
private _part = [_selectionName] call FUNC(selectionNameToNumber);
|
2015-02-21 20:26:39 +00:00
|
|
|
|
|
|
|
// Place a tourniquet on the bodypart
|
2016-06-13 00:34:56 +00:00
|
|
|
private _tourniquets = _target getVariable [QGVAR(tourniquets), [0,0,0,0,0,0]];
|
2016-02-28 23:50:28 +00:00
|
|
|
_tourniquets set [_part, CBA_missionTime];
|
2015-11-30 16:27:09 +00:00
|
|
|
_target setVariable [QGVAR(tourniquets), _tourniquets, true];
|