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

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