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

Let KI Unit attack destructibles

Status
Not open for further replies.
Level 7
Joined
May 30, 2018
Messages
290
Hey hey guys,

so I made a little trigger, that spawns an KI controlled unit, which moves to a specific region. The problem is in the way of the unit are destructibles (like walls and gates). How can I make a trigger , so the unit attacks these destructibles (to get through them)?

Kind regards
 
Level 6
Joined
Dec 31, 2017
Messages
138
Put destructibles into array D.

Add all "D[i] dies" events to a trigger.
This trigger should find the first D[i] that isn't dead yet and make your unit attack that destructible.
 
Last edited:
Level 7
Joined
May 30, 2018
Messages
290
Put destructibles into array D.

Add all "D[i] dies" events to a trigger.
This trigger should find the first D[i] that isn't dead yet and make your unit attack that destructible.

Iam sorry, could you give me some hints on how to do this? I have no clue about arrays and integers :/. Thanks in advance
 
Status
Not open for further replies.
Top