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

25 lines
548 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Brett Mayson
* Checks if the patient can be placed in a bodybag.
*
* 'vehicle _patient' always returns the body
* '_patient in _patient' always false for body
*
* Arguments:
* 0: Medic (not used) <OBJECT>
* 1: Patient <OBJECT>
*
* Return Value:
* Can Place in Bodybag <BOOL>
*
* Example:
* [player, cursorObject] call ace_medical_treatment_fnc_canPlaceInBodybag
*
* Public: No
*/
params ["", "_patient"];
(isNull objectParent _patient) && {!(_patient call EFUNC(common,isAwake))}