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

[Solved] Help with attack trigger

Status
Not open for further replies.
Level 4
Joined
Jul 19, 2010
Messages
99
  • Attack
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Owner of (Entering unit)) Equal to Neutral Hostile
    • Actions
      • Unit - Order (Entering unit) to Attack (Random unit from (Units in (Playable map area) matching (((Matching player) slot status) Equal to Is playing)))
i want the *unit* to attack a random enemy when spawned but the problem is, that the *unit* gets within 300 feet of the random unit and then turns around and goes back to the spawn point. a little help please :)
 
Level 23
Joined
Jan 1, 2009
Messages
1,610
Thats because its a Unit from the neutral hostile npc.
An easy way to fix that is to increase all the Creep settings about Guarding in the Gamplayconstants to 999999(max value)
 

Attachments

  • Capture.JPG
    Capture.JPG
    11.3 KB · Views: 98
Status
Not open for further replies.
Top