Update addons/dragging/XEH_postInit.sqf

Co-authored-by: Joko <hoffman.jonas95@gmail.com>
This commit is contained in:
johnb432 2024-07-01 10:13:01 -07:00 committed by GitHub
parent 28560b9ad9
commit b5205c1fd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,12 +12,7 @@
// Check if the corpse is already close to the target
// If so, don't teleport
if !(
(_currentPos select 0 <= _xPos + 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}
_currentPos distance _posATL > 0.25
) then {
// Set direction before position
_corpse setDir _dir;