Should i handle all the health, mana on the GameInstance or on the pawn?
Are there any pros or cons storing all the stats like health, mana, stamina on the Game Instance than on the pawn? Like preventing people from hacking and bugs in the future etc ?
asked Aug 25 '18 at 12:41 PM in Blueprint Scripting
The GameInstance class is an object that represents the instance of your game (if I understood the documentation correctly) To me, I wouldn't place character stats in the GameInstance and would instead place it in a PlayerState (if you plan on making a multiplayer game) or in the class that represents your character.
As for security and cheating protection, a first step would be to validate the input coming from the client.
answered Aug 25 '18 at 01:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here