Как получить координаты?

Fluffy1560

Активный
Автор темы
278
34
Версия MoonLoader
Другое
Как из этой функции получить координаты?
Lua:
function getCurrentRaceCheckpoint()
    return {x = currRaceCheckPoint.x, y = currRaceCheckPoint.y, z = currRaceCheckPoint.z}
end
 

#kweeZ

Известный
577
123
Rakbot?

Lua:
function onRecvRpc(id, data, size)
 if id == 38 then
    local bs = bitStreamInit(data, size)
    local type = bitStreamReadByte(bs)
    local x = bitStreamReadFloat(bs)
    local y = bitStreamReadFloat(bs)
    local z = bitStreamReadFloat(bs)
    local nextx = bitStreamReadFloat(bs)
    local nexty = bitStreamReadFloat(bs)
    local nextz = bitStreamReadFloat(bs)
    local radius = bitStreamReadFloat(bs)
    bitStreamDelete(bs)
    printLog("[onRaceCheckpoint] X: "..x.." | Y: "..y.." | Z: "..z)
 end
end