Josh64

Beggar State

May 31st, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. funtion Mod:onRender()
  2. for _, entity in pairs(Isaac.GetRoomEntities()) do
  3. if entity.Type == EntityType.ENTITY_SLOT and entity.Variant == 6 then -- 6 = shell game variant
  4. Isaac.RenderText(“Shell State: “ .. tostring(entity:ToNPC().State), 100, 50, 1,1,1,1)
  5. end
  6. end
  7. end
  8.  
  9. Mod:AddCallback(ModCallbacks.MC_POST_RENDER, Mod.onRender)
Advertisement
Add Comment
Please, Sign In to add comment