Npc and AI

i dont have any idea how to create an Npc for my game that can move randomly, attack the player and has a player vizualisation range and you can hide from behind objects.

i need that for my horror game and i need some help from people that are experienced.

You can do all that stuff quite easily with the asset Behavior Designer Behavior Designer in Asset Store - if you want to code it yourself I’d recommend the book “Programming game AI by example”