ACE3/addons/medical_status/functions/fnc_isMedicalVehicle.sqf

21 lines
444 B
Plaintext
Raw Normal View History

/*
* Author: Glowbal
* Check if vehicle is a medical vehicle
*
* Arguments:
* 0: The Vehicle <OBJECT>
*
* Return Value:
* Is in of medic class <BOOL>
*
* Example:
2018-05-08 09:16:12 +00:00
* [cursorObject] call ace_medical_status_fnc_isMedicalVehicle
*
* Public: Yes
*/
#include "script_component.hpp"
2015-08-22 14:25:10 +00:00
params ["_vehicle"];
(_vehicle getVariable [QEGVAR(medical,medicClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant")]) > 0