• 🏆 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!

Varible to randomly attack players

Status
Not open for further replies.
Level 3
Joined
May 12, 2008
Messages
42
I have no idea how to make it so a computers units that are spawned randomly attack a random player. Someone posted how but i have no idea how:sad: can someone please explain :cute:
 
Level 24
Joined
May 9, 2007
Messages
3,563
OK. . .

Order last created unit to attack to random unit from unit group (units in region(playable map area)).

Altenitavley you could attack to a random player start location like such

Order last created unit to attack to random unit from unit group (PlayerStartLocations)

In order to fo this you have to add the start locations to a unit group at map inizilization.

This is really quite simple so if you don't get it I'm sorry but your a lost cause. . .
 
Status
Not open for further replies.
Top