Just wanted to ask, wouldn’t it be better to make the Tick function in our AIcontroller protected or public so we can call Super::Tick() and override it in a child class?
Also in the implementation in .cpp of the Tick function we call GetControlledTank() and GetPlayerTank() every Tick.
Would it be better to make variables in .h ATank* Playertank, AiTank and set these pointers only once in Beginplay function? Does the compiler already store these since it sees we are calling the get function every tick, or would it be better to store them as variables.
Thanks in advance,