ACE3/addons/medical/functions/fnc_isMedicalVehicle.sqf
2015-01-18 22:16:35 +01:00

17 lines
504 B
Plaintext

/**
* fn_isMedicalVehicle.sqf
* @Descr: Check if vehicle is a medical vehicle
* @Author: Glowbal
*
* @Arguments: [vehicle OBJECT]
* @Return: BOOL
* @PublicAPI: true
*/
#include "script_component.hpp"
private ["_veh"];
_veh = _this select 0;
if !(_veh getvariable [QGVAR(isMedicalVehicle), true]) exitwith {false}; // exit in case the false is set.
((getNumber(configFile >> "CfgVehicles" >> typeOf _veh >> QGVAR(isMedicalVehicle)) == 1) || (_veh getvariable [QGVAR(isMedicalVehicle), false]));