strutZ
Australian OT Member {AKA Beastn}
- Joined
- Nov 16, 2014
- Messages
- 1,391
- Solutions
- 7
- Reaction score
- 550
Hey,
Can someone explain to me how a corpse flag is added? For some reason when i kill a toad and run this
it is returning false. But with majority of other monsters it is returning true.
Excuse the noob question.
Thanks!
Can someone explain to me how a corpse flag is added? For some reason when i kill a toad and run this
Code:
local corpse = Tile(position):getTopDownItem()
if not corpse or not corpse:isContainer() then
return
end
print(corpse:getType():isCorpse()
it is returning false. But with majority of other monsters it is returning true.
Excuse the noob question.
Thanks!