ACE3/addons/medical/functions/fnc_treatmentTourniquetLocal.sqf

28 lines
703 B
Plaintext
Raw Normal View History

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
*
* Public: No
*/
#include "script_component.hpp"
2015-09-03 13:49:49 +00:00
private ["_tourniquets", "_part", "_applyingTo"];
params ["_target", "_tourniquetItem", "_selectionName"];
2015-02-21 20:26:39 +00:00
//If we're not already tracking vitals, start:
[_target] call FUNC(addVitalLoop);
2015-02-21 20:26:39 +00:00
_part = [_selectionName] call FUNC(selectionNameToNumber);
// Place a tourniquet on the bodypart
_tourniquets = _target getVariable [QGVAR(tourniquets), [0,0,0,0,0,0]];
_tourniquets set [_part, CBA_missionTime];
_target setVariable [QGVAR(tourniquets), _tourniquets, true];