getGearPieces
API -
return function()
local avatar = getAvatar('block_man');
if avatar == nil then
log('the avatar was not found');
return;
end
local gearPieces = avatar.getGearPieces('hats');
--returns a list of gear items that's from the gear set
local str = '';
for key, value in pairs(gearPieces) do
str = str + value + ', ';
end
log(avatar.name .. ' has these gear pieces available:');
log(str);
end
Last updated