Okay, I have looked through previous topics and could never find an answer. So, this will be (at least mine) the last scarab question, ever!
I can do everything up to the part where you tell the scarabs to roam around. I can get them all to a location, keep them there, then move them when I meet a certain condition. But, when I move them, then say "Set to Junkyard Dog at 'location'", they just go flying off all around usually, and sometimes die. This is incredibly frustrating seeing as how I have created countless test maps for scarab controlling. If someone has a little map they can give me, or explain it well I would be forever greatful!
(On a side note: If you tell a scarab to junkyard dog, then will it attack enemy units nearby, or do you need to use a different AI Script for that? The effect I want is for the scarabs to fly out of a unit and go all over the place and kill everybody nearby. Is this possible?)
I don't understand what your exact question is, but I will try to help.
If there are no other units around, and you move scarabs and set their order to 'junk yard dog' once, then the first few will explode, but if more are given the same command, they seem to last forever.
If there are enemy units around, the scarabs will attack them.
If on the other hand you set the scarabs' order to 'junk yard dog' continuously with hypertriggers, then they will have a much more erratic movement, and will not attack enemy units and will explode quickly.
It is possible to use the scripts 'set generic command point' and 'make these units patrol' together to make scarabs patrol between two locations, attacking enemy units nearby.
If you move scarabs without giving them any AI, they seem to want to keep attacking whatever they were attacking before.
I'm probably wrong, but I don't think there's a way to order scarabs besides setting a target for it to attack.