mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
9e3409fc6e
* medical: allow placing unconscious in a bodybag * Always show body bag action on non-awake units Co-authored-by: PabstMirror <pabstmirror@gmail.com>
25 lines
544 B
Plaintext
25 lines
544 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: SynixeBrett
|
|
* 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))}
|