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-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [car] call ace_medical_fnc_isMedicalVehicle
|
|
|
|
*
|
2015-02-21 23:44:11 +00:00
|
|
|
* Public: Yes
|
|
|
|
*/
|
2017-06-08 13:31:51 +00:00
|
|
|
|
2015-02-21 23:44:11 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-22 14:25:10 +00:00
|
|
|
params ["_vehicle"];
|
2015-02-21 23:44:11 +00:00
|
|
|
|
2015-05-13 13:55:03 +00:00
|
|
|
(_vehicle getVariable [QGVAR(medicClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant")]) > 0
|