ACE3/addons/core/functions/fn_isMedic.sqf

18 lines
320 B
Plaintext

/*
* Author: KoffeinFlummi
*
* Checks if a unit is a medic.
*
* Arguments:
* 0: unit to be checked (object)
*
* Return Value:
* Bool: is unit medic?
*/
private ["_unit"];
_unit = _this select 0;
_unit getVariable ["AGM_isMedic", (getNumber(configFile >> "CfgVehicles" >> typeOf _unit >> "attendant") == 1)]