I already tried
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
player:getvelocity()
, where “player” is a player object.
But it returns nil.
player:getvelocity()Wuzzy wrote:How do I get the velocity of a player?
Calinou wrote:Wuzzy wrote:How do I get the velocity of a player?
I'm sorry Dave, I'm afraid we can't do that: https://github.com/minetest/minetest/issues/1176
However, you can maybe try comparing player positions between two steps.
Users browsing this forum: No registered users and 10 guests