You'd likely need to use the 'make entity navigate' function, using an entity iterator to target all undead mobs in a large radius. Might not work though, depends on whether continuing to attack the player overrides procedure-based pathfinding stuff.
You'd likely need to use the 'make entity navigate' function, using an entity iterator to target all undead mobs in a large radius. Might not work though, depends on whether continuing to attack the player overrides procedure-based pathfinding stuff.