Hello. I'm trying to make a mod with various factions fighting each other. So far it's going pretty good, but for some reason, enemy AI isn't acting the way it's supposed to. I have placed raiders in some areas, and the majority of my custom NPC's (which use the same AI as standard raiders), but for some reason they end up running as far away from the player as they can, often times trying to run through a wall relentlessly, or running on top of rubble piles that are supposed to form the bounds of the outside area. Melee raiders are the worst, as instead of running up to you and hitting you with their weapon, they just run the opposite direction and don't bother hitting you even once.
Also, there are two army remnant factions that I made fight against each other in squad-like formation. I placed all NPC's down manually in the way I'd like the battle to play out as the player is entering the cell. That's all fine and dandy until one factions kills all NPCs in the other faction's squad, but there are more enemies up ahead of them. Instead of running over to get a better range of shooting, they just stay in their exact spots, barely moving from the spot I placed them, if they move at all. This gets frequently annoying as they're trying to snipe each other with assault rifles, so they're basically shooting nothing half the time.
How can I improve my enemies' AI? It's a bit frustrating, and I've used a default raider NPC as a template, my custom NPC's have the same AI packages that normal raiders have, so what's the problem? I was going to set up patrol points but I haven't, because they're just going to be shooting other enemies instead of looking for the player. I'd just like raiders to confront you instead of running to impossible areas and then *maybe* defending themselves, as well as squad troops moving up to acquire new enemies when they've killed everyone in their line of sight.
I might post a video or two if that helps. Let me know if you'd like to see one. Thanks in advance for your help.