I am currently doing a very gross hack: Making the monster disappear, spawn a pathfinder actor that moves very fast and has NOCLIP, and on his missile state, spawn a clone of the previous monster. (its a low health monster, so doesn't matters if his health is reseted).
This works fine for a while, but sometimes the pathfinder just doesn't want to search for the player. Sometimes it will just stay still where it have last seen the player, facing the same angle, doing nothing, and will only work again if he see the player again.
The pathfinder code:
Spoiler:
There is a better and cleaner way to make the monster teleport, or, at least fix this pathfinder?