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