I was wondering, when you give units an order via script to attack or move to a position, are they using mods (such as Sorian AI) to determine the best path to get to the destination?
I am having a problem where the AI units I am ordering to attack don't seem to want to use the path nodes I have placed.
Do I need to specify what AI they should be using for pathing etc?
Thanks in advance.|||yes; Sorians, atleast his very recent ones do.
i don't much about AI nor pathing, but from what i've heard pathing is rather AI independant.|||Interesting, in that case when creating armies via code (as opposed to selecting AI from the list when you create a game) - is there a way to specify which AI the enemy should use?|||independant; as in the same for all AIs.
it could (most likely) be just Sorians AIs though, wait for him or Duncane to pass by -- they'll know for sure.|||Not sure I understand what you are asking. Could you clarify a bit?
Are you starting an AI only game and then using Alt+F2 to spawn units and then trying to move them?
Are they custom units?
Any other details you can provide so I can make sure I am understanding what you are trying to do?|||Hi Sorian,
Basically I am starting a game with No AI players (so slots 1- 8 are selected by human players).
Then I am spawning units for armies 9 - 16 via script, putting them in platoons and telling them to attack the middle of the map. There are no custom units, and I am using CreateUnitHPR to make the units. (So there are no land factories or anything, they just appear at a specified point).
So what I am curious about, is what AI armies 9 - 16 would be using, is there a way to specify this in via scripting?
Everything works fine, I spawn the units, attack in waves, however the one problem I have is that the land units are not taking the shortest path to the middle of the map. This happens even on a completely flat map. I have land path nodes in there but it just seems like the AI is ignoring them.
Alternatively am I thinking incorrectly that there is even an AI (since there is no building of units or engineers etc)?
If you need any further info please let me know.
p.s. I don't know if you ever played a map called SUPREME ART OF DEFENCE, but that is basically what I am doing|||If you are just giving them an AggressiveMoveToLocation order, than the AI pathing is not being used at all. It is the same command the HuntAI platoons use. you would have to specifically tell them to move to the pathing nodes to get them to path that way. MoveToLocation, IssueMove, AggressiveMoveToLocation, and IssueAggressiveMove all use the game engine.|||Okay I suspected as much ;/ thanks for that will have to look into getting them to use the path or something.
The game engine must do some pretty strange things if they don't go straight to the destination though, I thought it would use the quickest/shortest path by default

All they seem to want to do is head straight to the 45 degree line, and then ride the 45 degree line to the middle.
Maybe if I just queue up some move points instead they will behave a bit better...
No comments:
Post a Comment