Advertisement
epitaque_

Untitled

Sep 5th, 2015
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. function GameMode:clear_cosmetics(playerID)
  2. if playerID ~= nil and playerID ~= -1 then
  3. local hero = PlayerResource:GetSelectedHeroEntity(playerID)
  4. local wearable = hero:FirstMoveChild()
  5. while wearable ~= nil do
  6. if model:GetClassname() ~= "" and model:GetClassname() == "dota_item_wearable" then
  7. wearable:AddEffects(EF_NODRAW)
  8. end
  9. wearable = wearable:NextMovePeer()
  10. end
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement