I’m having difficulty making a variable go past 1 when a person is rescued. At the moment, the player is able to collide with the person who is being rescued, which add’s one to the rescue counter and then destroys the actor. if I place another actor (or duplicate the current one) the counter does not update and stays at 1.
I have attached blueprints below
The BP below is the BP within the sprite that will be rescued when the player overlaps the trigger box.
This BP shows how the value is printed to the screen and updated once the player rescues someone.
The variables have been set to integer. ‘RescueCount’ has been set to 0 which is located within the 2dcharacter, and addRescue has been added within the rescue players BP.