Connecting a playerstate to a character

I have a custom playerstate and gamemode class. How do i connect my custom playerstate to thirdpersoncharacter?

Hello, Drake

A variable of APlayerState type is contained in every class that derives from APawn (including ACharacter). Thus, in your Character class, you can use the following (assuming your PlayerState class derives from APlayerState class):

PlayerState = MyPlayerStateObject;

Please note, that PlayerState field has APlayerState type, so in case you need to access some functionality which is implemented in your custom PlayerState class, you need to perform a cast to the type of your custom class.

Hope this helped!