Code:
hud.add(function(v, p)
for mobj in thinkers.iterate("mobj")
if not (mobj.type == MT_EMERALD1 | mobj.type == MT_EMERALD2 | mobj.type == MT_EMERALD3 | mobj.type == MT_EMERALD4 | mobj.type == MT_EMERALD5 | mobj.type == MT_EMERALD6 | mobj.type == MT_EMERALD7) return end
print("TEST1")
end
end, "game")
This code is supposed to print "TEST1" in the console whenever an Emerald mobj is found on the map, yet it does nothing. I am unsure what the problem is, but I think it's the iteration and that I'm not doing it right?