it keeps saying: Can’t read property “pos” of null. here’s my code.
Try this:
item = hero.findNearestItem()
if item:
itemPos = item.pos
2 Likes
I don’t know python very well but i think you need to change the Pos
to pos
idk
Yes, you would need to check if an item exists before defining itemPos as the item’s position.