getAvatar

API - gets a specific avatar

An avatar is not the same as a User.

the Avatar class contains data relevant towards a specific avatar, such as available gear items and color palettes that can be equipped.

return function()
    local targetAvatar = getAvatar('block_man');
    if targetAvatar == nil then
        log('target avatar could not be found!')
    else
        log (targetAvatar.name);
        for (i,gear in pairs(targetAvatar.Gear()))
            log(gear); --prints the gear sets that are available to the avatar
        end
    end
end
Avatar

Last updated