Jump to content

[BUG] onClientCursorMove


Recommended Posts

Posted (edited)

worldZ - координата не та, ошибается на 215.

в итоге будет так |worldZ + 215|.

Вообщем эта координата как-то зависит от положения игрока.

Edited by Guest

Sorry for my bad english! :)

Posted
я не понял суть проблемы, давайте чёчче

Я так понял, что при использовании команды onClientCursorMove, z переменная, которую выводить оная - неверна.

Posted
worldZ - координата не та

Господа, первый пост читаем ПОЛНОСТЬЮ. Данные дали, хотелось бы конечно пример кода...

Posted

outputChatBox("Z: " .. z)

Вот.

Примерно так:

  
showCursor(true) 
guiSetInputEnabled(true) 
  
addEventHandler("onClientCursorMove", getRootElement(),  
    function (rx, ry, ax, ay, wx, wy, wz) 
        outputChatBox("Z: " .. wz) 
    end 
) 
  

Даёт примерно число -250... Зависит от вашей позиции Z.

Чем ты выше над уровнем моря, тем меньше Z курсора.

Sorry for my bad english! :)

Posted

Ну тоесть не Z курсора, а Z мира, получаемая через это событие, то есть "wz" в моём примере.

Sorry for my bad english! :)

Posted

Тему создал, чтобы сообщили о баге.

А обошёл это этим же способом, но всё таки там нужно указывать радиус от камеры.

Sorry for my bad english! :)

Posted

Кто-нибудь, подтвердите что работает не правильно, чтобы знать, создавать отчет на мантисе или нет?

Do not PM me, im not going to read it anyway.

  • Moderators
Posted

Оо точно как вы мантис поставили? я пробовал у меня ошибка при копирование таблиц из файла :(

Developers, Developers, Developers, Developers.... © Steve Balmer

http://www.lua.org/about.html

Quote
Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!
  • Moderators
Posted

Ну я знал что давно. Но у меня неполучается установить :(

Developers, Developers, Developers, Developers.... © Steve Balmer

http://www.lua.org/about.html

Quote
Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...