Merge pull request #3022 from acemod/bodybagevent

add event for placing units in body bags
This commit is contained in:
commy2 2016-01-05 21:59:47 +01:00
commit 7eaa55f9df

View File

@ -28,10 +28,12 @@ _spinePos = _target modelToWorldVisual (_target selectionPosition "Spine3");
_dirVect = _headPos vectorFromTo _spinePos;
_direction = _dirVect call CBA_fnc_vectDir;
deleteVehicle _target;
_bodyBag = createVehicle ["ACE_bodyBagObject", _position, [], 0, "CAN_COLLIDE"];
["placedInBodyBag", [_target, _bodyBag]] call EFUNC(common,globalEvent);
deleteVehicle _target;
// prevent body bag from flipping
_bodyBag setPosASL _position;
_bodyBag setDir _direction;