2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-08-12 13:25:48 +00:00
|
|
|
/*
|
2023-08-17 10:02:17 +00:00
|
|
|
* Author: kymckay
|
2017-08-12 13:25:48 +00:00
|
|
|
* Check if a unit is a medic
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
|
|
|
*
|
2023-04-30 21:03:35 +00:00
|
|
|
* Return Value:
|
2017-08-12 13:25:48 +00:00
|
|
|
* Unit is medic <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player] call ace_common_fnc_isMedic
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
|
2021-02-18 18:58:08 +00:00
|
|
|
private _isMedic = _unit getVariable [QEGVAR(medical,medicClass), getNumber (configOf _unit >> "attendant")];
|
2017-08-12 13:25:48 +00:00
|
|
|
|
|
|
|
_isMedic > 0
|