mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
352 B
Plaintext
19 lines
352 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 "script_component.hpp"
|
|
|
|
private ["_unit"];
|
|
|
|
_unit = _this select 0;
|
|
|
|
_unit getVariable ["ACE_isMedic", (getNumber(configFile >> "CfgVehicles" >> typeOf _unit >> "attendant") == 1)]
|