| 07-09-2003, 01:37 AM | #1 |
yep its me again your friendly neigborhood noob, for the map im making i need to put units in a group, i did this by adding 7 units to a unit group variable called u1 (not an array) then i make a trigger to make emey units attack a random unit in that group, problem is they dont... plz help |
| 07-09-2003, 02:05 AM | #2 |
I think I have the solution to your problem. Be sure that you have some way of calling your attacking unit. For example, I would store the attacking unit as a variable. I'll call it EnemyUnit for now. Only one trigger will be necessary to accomplish this: Trigger 1: Attack Random Unit Events:    <Your events here> Conditions:    <Your conditions here> Actions:    Unit - Order EnemyUnit to Attack (Random unit from u1) And that should be it. It's pretty easy. Do you need a tangible map so you can see the actual triggers work? Let me know, and I'll make one as soon as I can! |
| 07-09-2003, 09:57 AM | #3 |
i need about 30 units attacking not just 1 |
| 07-09-2003, 11:21 AM | #4 |
How about Pick all units in YourRegionOrUnitGroupVariableHere and do the same thing as he said? Regards |
