add event for placing units in body bags

This commit is contained in:
commy2 2015-12-12 18:21:11 +01:00
parent e9a669b03b
commit 7f63d51ccb

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;