Hi, I have 2 class, one inherit from ACharacter and the other inherit from PlayerState. The PlayerState have some stats the player need so, I need execute this BeginPlay before the character BeginPlay. How can I do that?
Thanks in advance!
Please, only C++.
BeginPlay is called on initation process of actor, right after component initation, so whatever BeginPlay of something is called first or not it depends on which actor was created first.
PlayerState is created on component initiation of PlayerController, so i think best place to hook up is possession event, at that point PlayerState should be standing:
And why not just use stats in PlayerState directly? thats option too
Finally I just use the PlayerState constructor and it works properly. I need the character access to PlayerState because it affects how faster the character move for example (state load the values from a server) . Thanks a Lot!!