Ok, when a reaver makes a scarab, I want 5 more scarabs to be created, and move all 6 of them to location A. Then, they should attack a random enemy. I got the 5 scarabs to be made, using 5 of your own reavers then moving their scarabs. However, when I move them to A, they always go to the upper left corner and explode on a wall, no matter what I do. I've tried Set generic command target, make units patrol, attack, patrol, move, and send all units on random suicide missions, but none of them do anything to the scarabs. How do I do it?
QUOTE
Ok, when a reaver makes a scarab, I want 5 more scarabs to be created, and move all 6 of them to location A. Then, they should attack a random enemy. I got the 5 scarabs to be made, using 5 of your own reavers then moving their scarabs. However, when I move them to A, they always go to the upper left corner and explode on a wall, no matter what I do. I've tried Set generic command target, make units patrol, attack, patrol, move, and send all units on random suicide missions, but none of them do anything to the scarabs. How do I do it?
That's your problem. You are trying to use an AI Script on a human player.
Quoted from controlling scarabs/interceptors:
QUOTE
Only works on computer players owning scarabs/interceptors.
Just use an "Order Units to Move to Location" trigger.
QUOTE
Just use an "Order Units to Move to Location" trigger.
That trigger does not work on Scarabs. Test first,
then post.
Ok ive done ALOT of tinkering with scarabs, and 1 you cant do crap with scarabs that are owned by a human player, and 2 if you want them to go in random directions run the AI script junkyard dog that will make them go in random directions and maby not always attack something, its pretty cool if you do like 20, its really DARN cool if you do a constant wave!!
Aww... all the slots are used in my map, so there's only 1 comp, which is the enemy. Could I possible use p9 as the enemy, and p8 as the scarab controller? Or maybe p9 as the scarab controller?
Also, if I just don't make 5 extra scarabs, and just move the original one without running any scripts, it still goes to the upper left. Shouldn't it go to the original target?
You can use p9-12 as comps, but they just can't do certain things like run AI scripts or use create unit triggers with them, though u can give units from other players to them.
And I think that you can get p9 to attack people.
It goes to the upper left because that is most likely the origin of where it was moved from. All units do this when you move them with a trigger; they move back in the direction of where they came from.
For p9, I could always get ITs to attack, but not normal units. Can't say I ever tested a scarab. However, does it really matter, since P9 can't run the AI script it needs to anyways?
How would you get p9 IT's to attack? I could use that...