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

[Trigger] AI doesent work as i want.

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
im working on 2 maps.

but in the pudge map the ai doesent.

I want pudge to use meat hook randomly in this region. and he doesent use it.

Here is the code.

  • Use Meat Hook
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set Temp_Unit = (Random unit from AI_Group)
      • Set temp_Group = (Units in Arena <gen> matching ((((Matching unit) belongs to an enemy of (Owner of Temp_Unit)) Equal to True) and (((Matching unit) is dead) Equal to False)))
      • Unit - Order TempUnit to Orc Tauren Chieftain - Shockwave (Random point in Arena <gen>)
      • Custom script: call DestroyGroup(udg_temp_Group)
 
Status
Not open for further replies.
Top