x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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: alt text

And an exaggerated example: alt text

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:

TwinStickGameMode Blueprint alt text

HeroCharacter Blueprint

alt text

EnemyCharacter Blueprint alt text

Any help would be much appreciated,

Thanks, Sam

Product Version: UE 4.10
Tags:
herocharacter.jpg (118.0 kB)
enemycharacter.jpg (181.0 kB)
ingame2.jpg (436.5 kB)
more ▼

asked Feb 22 '16 at 10:59 PM in Using UE4

avatar image

.SnakeSampson.
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I seem to have found a temporary solution by adding a DoOnce node before the respawn and destroy actor functions:

alt text

If this will have any negative effect on the outcome of the game/gameplay, or there is a better solution please let me know.

more ▼

answered Feb 22 '16 at 11:49 PM

avatar image

.SnakeSampson.
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question