For my current project, I am trying to figure out how to reference individual actors from the array returned from the GetAllActorsOfClass function.
I made it so that there can be no more than 2 of the particular actor I’m working with in the world at any given time. I would like to be able to get both of the actors individually, get their world locations, and use LineTraceByChannel to calculate the distance between them.
Here is what I have so far:
Thanks for your help!