mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixes random body bag teleports
This commit is contained in:
parent
47acb0f470
commit
14607f7aba
@ -22,10 +22,10 @@ _nameOfUnit = [_target] call EFUNC(common,getName);
|
|||||||
if (alive _target) then {
|
if (alive _target) then {
|
||||||
[_target, true] call FUNC(setDead);
|
[_target, true] call FUNC(setDead);
|
||||||
};
|
};
|
||||||
_onPosition = getPos _target;
|
_onPosition = getPosASL _target;
|
||||||
deleteVehicle _target;
|
deleteVehicle _target;
|
||||||
_bodyBagCreated = createVehicle ["ACE_bodyBagObject", _onPosition, [], 0, "NONE"];
|
_bodyBagCreated = createVehicle ["ACE_bodyBagObject", _onPosition, [], 0, "NONE"];
|
||||||
// reset the position to ensure it is on the correct one.
|
// 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;
|
_bodyBagCreated;
|
||||||
|
Loading…
Reference in New Issue
Block a user