• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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