I am trying to use a
What is the most efficient way to filter out corpses (both PC and NPC) while using the NearestSpawn TLO, so only living mobs are picked up?
Thanks!
mq.TLO.NearestSpawn(npc radius 200) instruction to auto-target whatever nearest mob might be in the near abouts. The problem is that, once the script has successfully picked up a nearby mob and it has been killed, the script runs again and picks up its very corpse instead of the next living NPC within the radius. I have tried to use conditional filters such as IF mq.TLO.NearestSpawn(npc radius 200).PctHPs() > 0 THEN... or IF mq.TLO.NearestSpawn(npc radius 200).Type.NotEqual(CORPSE)() THEN... in order to pick up the second next NearestSpawn, but I cannot make it work.What is the most efficient way to filter out corpses (both PC and NPC) while using the NearestSpawn TLO, so only living mobs are picked up?
Thanks!


