Ground unit hostilities
Posted: Sat Apr 06, 2024 12:55 am
I am having trouble with an amphibious assault scenario I am building. I have almost figured out how to script the cargo missions to land the troops (they are partially working, so that is good enough for now), but I can't get the troops to fight. I have landed friendly troops near the hostile troops (they should be in range of Hostile units), but nothing happens - neither side attacks the other and I can't seem to figure out why. If I manually tell one of the units to engage a target, it will fire and destroy the target unit, but nothing happens unless I intervene. If it was an Air Patrol and hostile aircraft came in range, they would automatically engage each other, right?
So, I thought about trying a Land Patrol with those units, but they still didn't seem to do anything. I feel like there is something obvious that I am missing here, but I can't seem to find anything. Any suggestions of things to try...either in the script or manually in the UI to see the fight begin? Has anyone else run into this where the units will not engage each other?
This may not be a Lua scripting thing, but since I am creating the mission through script, I figured this is a good starting place for my question.
So, I thought about trying a Land Patrol with those units, but they still didn't seem to do anything. I feel like there is something obvious that I am missing here, but I can't seem to find anything. Any suggestions of things to try...either in the script or manually in the UI to see the fight begin? Has anyone else run into this where the units will not engage each other?
This may not be a Lua scripting thing, but since I am creating the mission through script, I figured this is a good starting place for my question.