Download

How to reset the value of bots after death?

Hi everyone. A bot at level “A” has a numeric variable “cost” and after its death, it fills in the GameInstance score with this variable . When the score reaches the value of “N”, the transition to level “B”. But! The remaining bots at level “A” die and also fill in the account, which is not required. How to avoid this? Who has encountered this, is there a function in GameInstance that resets the parameters of ectors after the level is destroyed?