Skip to content

Commit 37d825e

Browse files
committed
Update SVehicleAttachSync.lua
1 parent 8366f25 commit 37d825e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

[gameplay]/glue_new/logic/SVehicleAttachSync.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ local attachSyncTimer = false
88
local attachSyncCorrection = {}
99

1010
local function correctAttachedPlayersPosition()
11-
local attachPositionWarp = false -- warp will reset player animations, we don't want that
1211
local attachVehiclesPosition = {}
1312

1413
for attachedPlayer, attachedToVehicle in pairs(attachSyncCorrection) do
@@ -37,6 +36,7 @@ local function correctAttachedPlayersPosition()
3736
attachVehiclePosition = attachVehiclesPosition[attachedToVehicle]
3837
end
3938

39+
local attachPositionWarp = false -- warp will reset player animations, we don't want that
4040
local attachPosX, attachPosY, attachPosZ = attachVehiclePosition[1], attachVehiclePosition[2], attachVehiclePosition[3]
4141

4242
setElementPosition(attachedPlayer, attachPosX, attachPosY, attachPosZ, attachPositionWarp)

0 commit comments

Comments
 (0)