How can add three lives for my third person character?
I want to add three lives for my character and make it so that he can revive whenever he dies. Specific instructions please
asked Jan 30 '17 at 03:29 PM in Using UE4
To store numbers of death I would store a CharacterDeath Integer inside of the PlayerController which increases upon death for every time the Character dies. When the character dies in your game the Player Controller can check if the CharacterDeath Integer is greater or equal to 3, if so - > End game (I guess), if not -> go on with a new life.
For the revive I would start a "waiting for revive" event inside the Character, maybe with a Gate Action, when the character dies. I would have the Gate open for a predefined time controlled with a "Revive Time"-variable which starts to decrease when the character dies. If this variable reach 0 the character dies
That's somewhere to start I think :)
answered Jan 30 '17 at 03:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here