In the Toon Tank lesson, we are making a turret that detect the distance to the toon tank. And i have some question regarding the codes.
-
In GetPlayerPawn(this,0) , is this suppose to return the playable character pawn in the world?
-
Can we not use GetWorld()->GetFirstPlayerController()->GetPawn() from the previous lecture for the GetPlayerPawn()?
-
The reason that we pass “this” to the WorldContext, is because “this” is in the world that we are currently on?
-
Do you always pass “this” to the WorldContext parameter? Because i dont see any other way to use it.
Thank you very much for answering any of the questions.