Medical - Prevent packing into bodybag for bodies in vehicle (#7731)

* Prevent packing into bodybag for bodies in vehicle

* Fix comment
This commit is contained in:
Filip Maciejewski 2020-05-29 06:07:26 +02:00 committed by GitHub
parent 19523f028a
commit 6fb8991bd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,9 @@ class GVAR(actions) {
medicRequired = 0;
treatmentTime = 15;
items[] = {"ACE_bodyBag"};
condition = QUOTE(!alive _patient);
// 'vehicle _patient' always returns the body
// '_patient in _patient' always false for body
condition = QUOTE(!alive _patient && {isNull objectParent _patient});
callbackSuccess = QFUNC(placeInBodyBag);
consumeItem = 1;
litter[] = {};