Start game - PlayerController

Hi,

It seems that PlayerController, instead of being taken from the pawn object, it can as well be taken immediately from the game context (also index 0). Only possible danger maybe is for multiplayers if pawn index would be different than PlayerController index (if this can even happen), but in this game this should not be the case. I play-tested this successfully.

Furthermore I even intially did this exercice without passing a PlayerController and EnableInput still seemed to have worked… maybe the PlayerController defaults to the first one in the game (although documentation does not mention it).

Matthias

1 Like

Privacy & Terms