From the wiki “PlayerState containing replicated information about the player using this controller (only exists for players, not NPCs).”
PlayerState is for stuff that should not be destroyed with the player. EDIT: the KillCounter variable should be in the PlayerState and then you should add a kill to the KillCounter var through your character
Yes, but in the ShooterGame there’s not any function like AddKill() in the PlayerState class… so that brings me to think I shouldn’t make a function like that in the PlayerState. Or maybe I should make it in the Character and then access the PlayerState in there.
It’s your choice to decide if you want to make the function in your character or PlayerState I’m pretty sure ShooterGame has no kill counter implemented, but it’s a long time since i last used it so i can’t really remember