Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GameMode:clear_cosmetics(playerID)
- if playerID ~= nil and playerID ~= -1 then
- local hero = PlayerResource:GetSelectedHeroEntity(playerID)
- local wearable = hero:FirstMoveChild()
- while wearable ~= nil do
- if model:GetClassname() ~= "" and model:GetClassname() == "dota_item_wearable" then
- wearable:AddEffects(EF_NODRAW)
- end
- wearable = wearable:NextMovePeer()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement