• 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.

make the units move around maprandomly and attack

Status
Not open for further replies.
Level 5
Joined
Jan 17, 2009
Messages
97
what i have is
Unit Movement
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Patrol To (Random point in Region 000 <gen>)



and


Unit Movement 2
Events
Unit - A unit enters Region 000 <gen>
Conditions
((Triggering unit) is Undead) Equal to True
Actions
Unit - Order (Triggering unit) to Patrol To (Random point in Region 000 <gen>)



What happens is they walk around and stuff but when you build walls and put attack towers in the middle they will walk around and try to get in but not attack...
how do i fix, do i make when they come within range of unit attack it?


plz help!
 
Level 12
Joined
May 21, 2009
Messages
994
  • Random Move
  • Events
  • Time - Every 15 seconds of game time.
  • Conditions
  • Actions
    • Set Group = Pick every unit owned by player 12 brown. (we cant have leaks :))
    • Set Loc = Random point in ( Units in playable map area (owned by player 12 brown))
    • Unit Group - Order (Group) to move to Loc
    • call RemoveLocation(udg_Loc)
    • call DestroyGroup(udg_Group)
Hope this helps you :grin:
 
Status
Not open for further replies.
Top