How would I go about creating a hiding system

Hi guys,
I’m trying to create a hiding system a little bit like Outlast hiding in lockers, closets, under beds etc… At the moment my AI NPC’s are pretty decent they roam around the map and when they see the player they will start chasing them until the player breaks line of sight and gets far enough away from them, the player at the moment can hide behind object to by-pass the enemies but that’s as good as it gets, Im guessing I may need to create some animations because it’s on a third person but the camera is on the players head to it looks like a first person but its on a third person character, any help would be great.
Cheers!

please read the following post .