GetSpeed() not working?
#1
I tried to print out the users speed with both GetSpeed().x/y/z and GetSpeedX/Y/Z() and it just send me nulls. Is there anything I should know for using this function? Huh Here is my onPlayerMoving() code:

function OnPlayerMoving(Player)
 Player:SendMessageInfo('Speed X:' .. Player:GetSpeed().x)
end

The hook is the same as in "Writing a Cuberite plugin" in the registering hook part.(link postet as a reply)
Sincerely G3bE
Reply
Thanks given by:


Messages In This Thread
GetSpeed() not working? - by G3bE - 08-20-2018, 01:43 AM
RE: GetSpeed() not working? - by G3bE - 08-20-2018, 01:44 AM
RE: GetSpeed() not working? - by NiLSPACE - 08-20-2018, 04:41 AM
RE: GetSpeed() not working? - by G3bE - 08-20-2018, 07:06 AM
RE: GetSpeed() not working? - by G3bE - 09-10-2018, 06:33 AM
RE: GetSpeed() not working? - by NiLSPACE - 09-10-2018, 10:13 PM
RE: GetSpeed() not working? - by G3bE - 09-13-2018, 07:27 PM
RE: GetSpeed() not working? - by NiLSPACE - 09-14-2018, 12:41 AM
RE: GetSpeed() not working? - by G3bE - 09-14-2018, 02:03 AM
RE: GetSpeed() not working? - by NiLSPACE - 09-14-2018, 04:04 AM
RE: GetSpeed() not working? - by G3bE - 09-21-2018, 06:21 AM
RE: GetSpeed() not working? - by JARROD - 07-25-2019, 07:04 PM
RE: GetSpeed() not working? - by Krystilize - 03-07-2020, 11:00 AM



Users browsing this thread: 8 Guest(s)