SHI_YE Posted June 11, 2021 Share Posted June 11, 2021 I added a mod character and it has its own level like wx78.I know how to save its level when I use it,but when I change to another character the old data of previous character is gone.So how to save the character's data of a user even if he changes to another character? Link to comment https://forums.kleientertainment.com/forums/topic/130742-how-to-save-a-mod-characters-level-like-wx78-when-i-change-to-another/ Share on other sites More sharing options...
Monti18 Posted June 11, 2021 Share Posted June 11, 2021 You need to use the functions SaveForReroll and LoadForReroll. Have a look at them in the game files, they are called when used with multiplayer portal. You will need to save them to a variable in the new player and add a AddPlayerPostInit so that the variable is saved if you exit the game being another character. 1 Link to comment https://forums.kleientertainment.com/forums/topic/130742-how-to-save-a-mod-characters-level-like-wx78-when-i-change-to-another/#findComment-1467973 Share on other sites More sharing options...
SHI_YE Posted June 11, 2021 Author Share Posted June 11, 2021 22 minutes ago, Monti18 said: You need to use the functions SaveForReroll and LoadForReroll. Have a look at them in the game files, they are called when used with multiplayer portal. You will need to save them to a variable in the new player and add a AddPlayerPostInit so that the variable is saved if you exit the game being another character. Okay THX.I'll try it. Link to comment https://forums.kleientertainment.com/forums/topic/130742-how-to-save-a-mod-characters-level-like-wx78-when-i-change-to-another/#findComment-1467975 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now