Skip to content

Commit

Permalink
Merge pull request #1469 from acemod/placeInBodyBagFix
Browse files Browse the repository at this point in the history
Fixes random body bag teleports
  • Loading branch information
thojkooi committed Jun 1, 2015
2 parents 4356b16 + 14607f7 commit cf0b2c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/medical/functions/fnc_actionPlaceInBodyBag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ _nameOfUnit = [_target] call EFUNC(common,getName);
if (alive _target) then {
[_target, true] call FUNC(setDead);
};
_onPosition = getPos _target;
_onPosition = getPosASL _target;
deleteVehicle _target;
_bodyBagCreated = createVehicle ["ACE_bodyBagObject", _onPosition, [], 0, "NONE"];
// reset the position to ensure it is on the correct one.
_bodyBagCreated setPos [_onPosition select 0, _onPosition select 1, (_onPosition select 2) + 0.2];
_bodyBagCreated setPosASL [_onPosition select 0, _onPosition select 1, (_onPosition select 2) + 0.2];

_bodyBagCreated;

0 comments on commit cf0b2c2

Please sign in to comment.