ACE3/addons/medical_treatment/functions/fnc_isMedicalVehicle.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

21 lines
424 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Glowbal
* Checks if the vehicle is a medical vehicle.
*
* Arguments:
* 0: Vehicle <OBJECT>
*
* Return Value:
* Is Medical Vehicle <BOOL>
*
* Example:
* [cursorObject] call ace_medical_treatment_fnc_isMedicalVehicle
*
* Public: No
*/
params ["_vehicle"];
_vehicle getVariable [QEGVAR(medical,isMedicalVehicle), getNumber (configOf _vehicle >> "attendant") > 0]