ACE3/addons/common/functions/fnc_isMedic.sqf
2015-01-12 19:22:58 +01:00

19 lines
373 B
Plaintext

/*
* Author: KoffeinFlummi
*
* Checks if a unit is a medic.
*
* Arguments:
* 0: unit to be checked (object)
*
* Return Value:
* Bool: is unit medic?
*/
#include "\z\ace\addons\common\script_component.hpp"
private ["_unit"];
_unit = _this select 0;
_unit getVariable ["ACE_isMedic", (getNumber(configFile >> "CfgVehicles" >> typeOf _unit >> "attendant") == 1)]