SaveOnDeath and SaveOnRejoin
SaveOnDeath and SaveOnRejoin:
With any value or folder in both PublicPlayerData or HiddenPlayerData, you can use attributes to have more control over how your player data is saved. You can now simply add a boolean attribute called "SaveOnDeath" and/or "SaveOnRejoin".
SaveOnDeath
The value or the contents of a folder WILL save when the player dies and respawns
The value or the contents of a folder WILL NOT save when the player dies and respawns
SaveOnRejoin
The value or the contents of a folder WILL save when the player leaves and will be successfully retrieved when they rejoin the game
The value or the contents of a folder WILL NOT save when the player leaves and will be successfully retrieved when they rejoin the game
Additional Details:
If you do not implement these attribute's then don't worry as the game will automatically set them to TRUE.
When you implement these attribute's, ensure that they are boolean values or else you may run into errors or unexpected behaviour!
Limitations
Current Limitation
As of currently, If you are using CustomDataModule then you are likely to be unable to use SaveOnDeath due to saving method limitations (if using the combine functions). As a result, if you are using it then SaveOnDeath will be ignored and function as if it was set to true.
SaveOnRejoin will continue to work regardless!
Last updated