mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
408 B
Plaintext
19 lines
408 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
* Check if unit has a tourniquet applied to the specified bodypart
|
|
*
|
|
* Arguments:
|
|
* 0: The Unit <OBJECT>
|
|
* 1: Body Part <STRING>
|
|
*
|
|
* ReturnValue:
|
|
* Has tourniquet applied <BOOL>
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_target", "_bodyPart"];
|
|
|
|
((_target getVariable [QGVAR(tourniquets), [0,0,0,0,0,0]]) select (ALL_BODY_PARTS find toLower _bodyPart)) > 0
|