I want to make a custom PRI object but am confused as to where exactly I assign it to my players. Both pawn and Controller have PRI members. In my extended controller class I have the following
and then in my Gametype class i have
Do I need to modify my extended class of Pawn as well to include this new class? When I try and cast my units' PRI as myPRI I get accessed none errors in the game. Any thoughts on how to do this correctly?
No you only have to set in your controller / playercontroller class:
That should do it - since the Pawn only contains a reference to the playerreplicationinfo, but it is spawned in the controller class
Are you sure your gametype uses your new controller class?