• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Units spawn - Attack random units to random player

Status
Not open for further replies.
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:

  • 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)))))
What would I have to improve?
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
 
Status
Not open for further replies.
Top