How do I stop an enemy from moving?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RafaGameDev

I was trying to make a doom clone folowing this tutorial: However, when one of the enemies died, it’s corpse would still chase me and some other enemies would stop chasing me and go on other directions they were not programmed to go. Can someone help me solve this problem?

Can you show your enemy death code, there may be a mistake

Asthmar | 2021-07-08 01:13