- Joined
- Jan 11, 2008
- Messages
- 449
Hi there, having some trouble with a trigger.
I want my new spawned units to attack random unit from a player-group
The Player-group works well, although the creatures that is spawned runs un-clean and not as I want. They are running everywhere.
Here is the trigger:
Call Destroy something?
Short said, I just want RANDOM units from Player 12 to attack random player from the group team1.
Do not want them to go to another player all of a sudden.
But if I make a trigger like; Make spawned units attack random player unit, if they kill that player, they still standing there.
Ty in advance /Redbean
I want my new spawned units to attack random unit from a player-group
The Player-group works well, although the creatures that is spawned runs un-clean and not as I want. They are running everywhere.
Here is the trigger:
- Always Run Attack
- Events
- Time - Every 10.00 seconds of game time
- Unit Group - Pick every unit in (Units owned by Player 12)) and do (Unit - Order (Picked unit) to Attack-Move To (Position of (Random unit from (Units owned by (Random player from Team1)))))
Call Destroy something?
Short said, I just want RANDOM units from Player 12 to attack random player from the group team1.
Do not want them to go to another player all of a sudden.
But if I make a trigger like; Make spawned units attack random player unit, if they kill that player, they still standing there.
Ty in advance /Redbean