ACE3/addons/medical/functions/fnc_isMedicalVehicle.sqf

19 lines
380 B
Plaintext
Raw Normal View History

/*
* Author: Glowbal
* Check if vehicle is a medical vehicle
*
* Arguments:
* 0: The Vehicle <OBJECT>
*
* ReturnValue:
* Is in of medic class <BOOL>
*
* Public: Yes
*/
#include "script_component.hpp"
2015-04-06 12:32:37 +00:00
private ["_vehicle"];
_vehicle = _this select 0;
2015-04-06 12:32:37 +00:00
_vehicle getVariable [QGVAR(isMedic), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant") == 1]