ACE3/addons/core/functions/fnc_isMedic.sqf

19 lines
371 B
Plaintext
Raw Normal View History

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