Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrow markers disappear in ground #536

Open
ArranTuna opened this issue Sep 21, 2018 · 1 comment
Open

Arrow markers disappear in ground #536

ArranTuna opened this issue Sep 21, 2018 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

ArranTuna commented Sep 21, 2018

Describe the bug
When placed too close to the ground, arrow markers get snapped in a really awkward and uncontrollable position, making them totally useless.

To reproduce
The following code (serverside or clientside, doesn't matter) creates 2 rows of markers: one row of cylinders, one row of arrows. While cylinders are placed as expected, the arrows close to the ground get moved.

function failMarkerTest()
    local x, y = 0, 0
    for z=0,10,0.5 do
        marker = createMarker(x, y, z, "arrow", 1, 255, 255, 0, 128)
        marker = createMarker(x+1, y, z, "cylinder", 1, 255, 255, 0, 128)
        y = y + 1
    end
end
addCommandHandler("failmarker", failMarkerTest)

Expected behaviour
To not get snapped to ground.

Screenshots
image

MTA Client:

  • Version: r6985
  • Running in Wine?

MTA Server:

  • Version r6985
  • OS:

Additional context

From https://bugs.mtasa.com/view.php?id=5534

@ArranTuna ArranTuna added the bug Something isn't working label Sep 21, 2018
@ArranTuna ArranTuna added this to the Backlog milestone Sep 21, 2018
@Allerek
Copy link
Contributor

Allerek commented Apr 22, 2021

local x, y = 27.38696, 165
local m = createMarker(x,y,2.6,"arrow",1)
print(getElementPosition(m))
setTimer(function()
    print(getElementPosition(m))
end,1000,1)

^If you look closely, it'll show up in correct position for short while, then it'll go down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants