Weeping Angels
In horror games, one common enemy type is the weeping angel. It follows players when they have their back turned and, if it gets too close, will either hurt or kill the player. It is shown in games such as Resident Evil Village:
The code for this was easy to implement. I duplicated the third person character, removed all of the player input, and then added an AI Perception component.

From there, I added a function to check when the AI first sees the player. This prevents the enemy from chasing the player before the game is ready.

If the player is found, then a custom event is called to check whether the player is rendering the enemy. If they are, then the enemy stands still. If the are not, then the enemy starts to move towards the player. I did not add a damage function into the code, but I did mark where one would eventually appear.

Here is a video that showcases the final mechanic in action: