How can i damage my ai with linetrace?
This is a possible method, there is already corresponding events for taking damage on actors:
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