i'd like to add some new behaviour types for units (like by default they have roam and hold pos). i think what i need is a group ai: i want to select a group of ground attacking units, jammers and artillery, set their group behaviour to my custom made so they moved around the map according to new rules (like heavy tanks first, jammers right behind streched all over the attack frontline, then goes arty..). but i can't find any info on group ai except for a few bits on mexUpgrader.
or what i want can be done with lua somehow?
unit behaviour scripting
Moderator: Moderators
Re: unit behaviour scripting
Short answer: probably easier to do with Lua than with a new Helper AI. It'd be pretty easy to do, if all units move at the same speed. Much, much, much harder if you want it to factor in speeds properly.
Re: unit behaviour scripting
This kind of widget has already been written by quantum. You can get it from CA SVN
Re: unit behaviour scripting
i've looked through the whole repository following your link, but didn't find what i've been looking for. (and the link itself only leads to a widget that sets specific units to hold position as they come out of factory)
i want units group movement improved... at least i'd like to force a group move at the speed of the slowest unit in it (setting other units to guard the slowest is not an option).
i want units group movement improved... at least i'd like to force a group move at the speed of the slowest unit in it (setting other units to guard the slowest is not an option).
Re: unit behaviour scripting
hmm I guess I didn't read your post carefully enough. Use ctrl + move to get units to stay in formation.
Re: unit behaviour scripting
Yeah, this already happens - ctrl + click forces formation and sets movement to the speed of the slowest.