ACE3/addons/medical_treatment/functions/fnc_isInMedicalVehicle.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

23 lines
483 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: KoffeinFlummi
* Checks if the unit is in a medical vehicle.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* In Medical Vehicle <BOOL>
*
* Example:
* [player] call ace_medical_treatment_fnc_isInMedicalVehicle
*
* Public: No
*/
params ["_unit"];
private _vehicle = vehicle _unit;
_unit != _vehicle && {!(_unit in [driver _vehicle, gunner _vehicle, commander _vehicle])} && {[_vehicle] call FUNC(isMedicalVehicle)}