Tutorial Twin Stick Shooter - Character respawn duplicates character on death
Hi, I have recently been following along with the Twin Stick Shooter Tutorial and have run into some problems. By step 15, everything is working well the enemies are spawning and dying, as well as the player character. However every time the player character dies and respawns a duplicate of the character is made at the spawn area. I followed the blueprints step-by-step and cant seem to be able to find the solution.
This is an example of the problem I am experiencing:
And an exaggerated example:
Upon closing the play window the following errors are reported:
"Cannot access 'Weapon_C_81'. It is pending kill. Property: 'Weapon' from node DestroyActor in graph 'EventGraph' in blueprint HeroCharacter"
and "Cannot access 'HeroCharacter_C_42'. It is pending kill. Property: 'None' from node DestroyActor in graph 'EventGraph' in blueprint HeroCharacter"
Below are the blueprints I am using:
Any help would be much appreciated,
asked Feb 22 '16 at 10:59 PM in Using UE4
I seem to have found a temporary solution by adding a DoOnce node before the respawn and destroy actor functions:
If this will have any negative effect on the outcome of the game/gameplay, or there is a better solution please let me know.
answered Feb 22 '16 at 11:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here