| 06-09-2004, 03:58 PM | #1 |
What I've got is a single player-controlled unit and a unit group variable of computer controlled units allied to the player. When the player-controlled unit is ordered to attack a unit, I want the unit group variable of computer-controlled units to attack random targets near the actual target. The trigger i wrote goes something like this: Code:
Event: Unit is issued an order targeting unit Conditions: Order issued = (Smart) OR Order issued = (Attack) Actions: Unit group- pick every unit in CompUnitGroup and do: Order picked unit to attack random 1 unit in 256 range of target of issued order matching owner of matching unit is an enemy of owner of ordered unit equal true My trigger doesn't work. I ran some debug triggers and i found that it only works for the 1st unit picked in CompUnitGroup. Repeatedly issuing the same order simply changes the target of that 1st unit. Does anyone have the faintest clue why this doesnt work? |
| 06-09-2004, 04:32 PM | #2 |
why not just order the computer to attack move? and are you sure that the computer is an enemy? |
| 06-10-2004, 06:06 AM | #3 |
yes im sure the computer is an enemy. Ordering units to attack-move hardly gives the same effect... In fact it isn't anything like what I want. |
| 06-10-2004, 03:17 PM | #4 |
Uhh, can no one help me? Please? |
