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