Ive got a pawns that are controlled by a custom AI controller, and ive got a player controller that supposed to comunicate with AI controller, but it doesnt work unless i use GetALLActorsOfClass.
If i do a trace and add the result to the Actor Array it also doesnt work. Ive checked the Actor array content and its all good.
If i use GetALLActorsOfClass and Set Actor Array than the actors of GetALLActorsOfClass will be saved to Actor Array and it will work.
So here i have a dilema how do i suppose to select pawns using trace if the trace gives a different result.
Both GetALLActorsOfClass and trace produce result - actor type, but for some reason they are different, becouse using the line trace (object) result will result in failing to cast to the custom AI controller.
Its as if it doesnt care about the actors themselves but the actor ai controllers…
Ive posted images and more text in my previos topic/question: