mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
444 B
Plaintext
21 lines
444 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:
|
|
* [cursorObject] call ace_medical_status_fnc_isMedicalVehicle
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_vehicle"];
|
|
|
|
(_vehicle getVariable [QEGVAR(medical,medicClass), getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> "attendant")]) > 0
|