getPosition

API -

return function()
    local user = getUser('clonzeh');
    if user == nil then
        log('user does not exist!');
        return;
    end

    local currentPosition = user.getPosition();
    log('the avatar is currently at position: ' .. currentPosition.x .. ', ' .. currentPosition.y);
end

Last updated