mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
add event for placing units in body bags
This commit is contained in:
parent
e9a669b03b
commit
7f63d51ccb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user