ACE3/addons/medical/functions/fnc_hasTourniquetAppliedTo.sqf

22 lines
508 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
* Author: Glowbal
* Check if unit has a tourniquet applied to the specified bodypart
*
* Arguments:
* 0: The Unit <OBJECT>
* 1: SelectionName <STRING>
*
* Return Value:
* Has tourniquet applied <BOOL>
*
* Example:
* [bob, "leg"] call ace_medical_fnc_hasTourniquetAppliedTo
*
* Public: Yes
*/
2015-08-22 14:25:10 +00:00
params ["_target", "_selectionName"];
(((_target getVariable [QGVAR(tourniquets), [0,0,0,0,0,0]]) select ([_selectionName] call FUNC(selectionNameToNumber))) > 0);