ACE3/addons/medical_status/functions/fnc_isMedicalVehicle.sqf
2017-04-01 20:41:45 +02:00

18 lines
356 B
Plaintext

/*
* 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"
params ["_vehicle"];
(_vehicle getVariable [QGVAR(medicClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant")]) > 0