getGear

API -

return function()
    local avatar = getAvatar('block_man');
    if avatar == nil then
        log('the avatar was not found');
        return;
    end
    
    local gear = avatar.getGear(); 
    --returns a list of gear that's attached to the avatar
    
    local str = '';
    for key, value in pairs(gear) do
        str = str + value + ', ';
    end
    log(avatar.name .. ' has these gear sets available:');
    log(str);
end

Last updated