mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
23 lines
509 B
Plaintext
23 lines
509 B
Plaintext
/*
|
|
* 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
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_target", "_selectionName"];
|
|
|
|
(((_target getVariable [QGVAR(tourniquets), [0,0,0,0,0,0]]) select ([_selectionName] call FUNC(selectionNameToNumber))) > 0);
|