Page 1 of 1
SetStatsToKeep not works for me
Posted: Wed Jul 03, 2019 10:06 am
by kirill240
SetStatsToKeep not working

I'm trying StatsToKeepEnabled = true, no changes.
After the gameover, the map is reloaded. And weapons, life is not saved. How to make it works?
And why i can create weapon class with custom Ammo, but can't assign or give it to player?
Re: Gurt help me! SetStatsToKeep not works for me
Posted: Wed Jul 03, 2019 4:14 pm
by JakSparro98
kirill240 wrote: ↑Wed Jul 03, 2019 10:06 am
SetStatsToKeep not working

I'm trying StatsToKeepEnabled = true, no changes.
After the gameover, the map is reloaded. And weapons, life is not saved. How to make it works?
And why i can create weapon class with custom Ammo, but can't assign or give it to player?
I'm done some tests and it seems that StatsToKeep is a feature only applied when setting map type on survival.
Re: SetStatsToKeep not works for me
Posted: Wed Jul 03, 2019 10:05 pm
by Gurt
It only works for Campaigns and Survival type maps.
I will update the summary in the RestAPI to reflect this better:
StatsToKeepEnabled:
Gets or Sets if stats should be kept when progressing on the same (map) playthrough.
This only applies to survival (clearing a wave or retrying a wave) and campaign (progressing to a new map part or dying).