Hello unreal developers,
I have some questions regarded the PlayerState class and logic on Replication
PlayerState
#1. I have create my own playerstate class and set it up in GameMode.cpp constructor like:
But whenever I try to access it it and it's variables it says: Error at reading address violition or something like that... How do I access that class?
#2. Is it a good idea to put health/hunger/energy inside PlayerState and replicate it?
#3. If so.. How do I acces these variables inside my Character?
I have some questions regarded the PlayerState class and logic on Replication
PlayerState
#1. I have create my own playerstate class and set it up in GameMode.cpp constructor like:
Code:
PlayerStateClass = ATTSPlayerState::StaticClass();
#2. Is it a good idea to put health/hunger/energy inside PlayerState and replicate it?
#3. If so.. How do I acces these variables inside my Character?
Comment