Hey, I have been wondering why the NewFocus function has no parameter for a target AIController. How does it know which controller it is supposed to call NewFocus on? Does it simply call itself everytime?
Unlike its blueprint counterpart, which has a node for a target Controller.
When you call a member function within the scope of a class you are calling it on the instance that is executing the code
SetFocus(PlayerPawn);
Is exactly the same as
this->SetFocus(PlayerPawn);
1 Like
Oh I see, thanks.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.