mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update addons/dragging/XEH_postInit.sqf
Co-authored-by: Joko <hoffman.jonas95@gmail.com>
This commit is contained in:
parent
28560b9ad9
commit
b5205c1fd0
@ -12,12 +12,7 @@
|
|||||||
// Check if the corpse is already close to the target
|
// Check if the corpse is already close to the target
|
||||||
// If so, don't teleport
|
// If so, don't teleport
|
||||||
if !(
|
if !(
|
||||||
(_currentPos select 0 <= _xPos + 0.25) &&
|
_currentPos distance _posATL > 0.25
|
||||||
{_currentPos select 0 >= _xPos - 0.25} &&
|
|
||||||
{_currentPos select 1 <= _yPos + 0.25} &&
|
|
||||||
{_currentPos select 1 >= _yPos - 0.25} &&
|
|
||||||
{_currentPos select 2 <= _zPos + 0.25} &&
|
|
||||||
{_currentPos select 2 >= _zPos - 0.25}
|
|
||||||
) then {
|
) then {
|
||||||
// Set direction before position
|
// Set direction before position
|
||||||
_corpse setDir _dir;
|
_corpse setDir _dir;
|
||||||
|
Loading…
Reference in New Issue
Block a user