ACE3/addons/medical_treatment/functions/fnc_isMedicalVehicle.sqf
PabstMirror e8693c8db9
Various - Use configOf command for faster lookup (#8100)
* configOf

* replace some use of CBA_fnc_getObjectConfig
2021-02-18 12:58:08 -06:00

21 lines
421 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]