ACE3/addons/medical/functions/fnc_treatmentTourniquetLocal.sqf

30 lines
752 B
Plaintext
Raw Normal View History

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