I need to make some steps.
To rotate both npcs but each time running the game they will rotate randomly from another direction. For example the first one will rotate from the right side or left side same the other one.
They will facing the door and start moving to the door. Near the door she will open automatic they will wait then they will move through the door.
one of the npcs will keep moving and will start random patrolling.
The second npc will rotate facing the door from the outside and will do something like locking the door ( I will animate it later he will rotate facing the door wait 2-3 seconds will rotate and will join the first npc and start patrolling too.
This is a screenshot of both npcs each one have a box collider. The door they should rotate smooth randomly and facing and moving to the door the one behind them.
This is the behind the door outside the hall. This is where one of the npcs should start patrolling and the other one wait some seconds facing the door like he is locking the door and then after some seconds to join and start patrolling too.
And this is the hall out side the door and then the hall right and left. They should be patrolling the hall right and left and also the hall with the door. But not getting too close to the door/s so they will not open all the time.
The last screenshot show where they should be patrolling. The left image is the hall outside the door the right image is a door on the front hall on the right and the bottom image the door on the left.
It's like a T
I need some guide how to start it by logic how to do it. I have the scenario in my mind what they should do the 4 steps. But not surw hot start doing it.
The scenario in general is: Two guards(npcs) lock the door from the outside and start patrolling outside.