The wall

hello, i have the AI for civilians on a game, i need to make a wall or boundary “thing” that my character and the civilians cant go past.