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

[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