• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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
 
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.
Back
Top