ACE3/addons/medical/functions/fnc_isMedicalVehicle.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

22 lines
420 B
Plaintext

/*
* Author: Glowbal
* Check if vehicle is a medical vehicle
*
* Arguments:
* 0: The Vehicle <OBJECT>
*
* Return Value:
* Is in of medic class <BOOL>
*
* Example:
* [car] call ace_medical_fnc_isMedicalVehicle
*
* Public: Yes
*/
#include "script_component.hpp"
params ["_vehicle"];
(_vehicle getVariable [QGVAR(medicClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant")]) > 0