mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3022 from acemod/bodybagevent
add event for placing units in body bags
This commit is contained in:
commit
7eaa55f9df
@ -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