How to damage ai with linetrace

How can i damage my ai with linetrace?

What about?:

This is a possible method, there is already corresponding events for taking damage on actors:

311699-damage-event.png

If you need more complex communication and don’t want to worry about casting and functions, I very much recommend a blueprint interface as the best solution. you can have a weapon or gun line-trace to anything it hits and “attempt” to damage it, but if it doesn’t implement the interface then nothing will happen.

here is an extremely good tutorial by Zak Parrish over at unreal on blueprint communication. the interfaces portion starts around 36 minutes. [Blueprint Communications | Live Training | Unreal Engine - YouTube][2]

Thanks :slight_smile: