-
-
Notifications
You must be signed in to change notification settings - Fork 488
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
And it can be fixed by using getElementsByType("object")
. Weird. Clientside everything is ok.
To reproduce
Run this code serverside:
local fuGate = createObject(968, 0, 0, 5, 0, 90, 0)
local rx, ry, rz = getElementRotation(fuGate)
outputChatBox("fu gate created, rotation: " .. rx .. ", " .. ry .. ", " .. rz)
local fuTime = 10000
moveObject(fuGate, fuTime, 0, 0, 5, 0, 0, 180)
setTimer(
function()
local rx, ry, rz = getElementRotation(fuGate)
outputChatBox("fu gate stopped, rotation: " .. rx .. ", " .. ry .. ", " .. rz)
local fuGates = getElementsByType("object")
local rx, ry, rz = getElementRotation(fuGate)
outputChatBox("fu gate stopped, rotation: " .. rx .. ", " .. ry .. ", " .. rz)
end, fuTime, 1)
See chatbox.
Try again but clientside.
Serverside output:
fu gate created, rotation: 0, 90, 0
fu gate stopped, rotation: 0, 90, 0
fu gate stopped, rotation: 0, 90, 180
Clientside output:
fu gate created, rotation: 0, 90, 0
fu gate stopped, rotation: 0, 90, 179.94598388672
fu gate stopped, rotation: 0, 90, 179.94598388672
Expected behaviour
Rotation not to be wrong.
MTA Client:
- Version: 1.4 r6873
MTA Server:
- Version 1.4 r6873
Additional context
From https://bugs.mtasa.com/view.php?id=8576
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working