First thing you will want to consider is, if the door way is wide enough and tall enough.
Next look at the fpe files of the building you are using and make sure they have these statements in them:
collisionmode = 1
forcesimpleobstacle = 3
Reload the map and press test game.
Press TAB TAB.
In the Graphics options window slide the debug slider to 10.
This will show you the collision boxes around your buildings. AI can not cross any lines. So this is where you can check for collision obstacles in the way.
You can then adjust your way point to enter into these building from a more straight on direction.
OK, Now you must script the waypoint actions. I think smallg has a script for that all ready done.
Let me find the link. Look in the global.lua file for all the current commands that can be used.
Check out this thread here on how to control waypoints thru scripting more.. there are example scripts there also.
https://forum.game-guru.com/thread/220591#topRIP
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.
New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774