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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How do I make my score stop when I'm dead?

Here is my scoring system.

alt text

I need to make it so the score stops when my player dies. I tried to make a custom event on the character for death but it just wouldn't work no matter what I did. My custom death function would set an IsDead Variable which I would plug into the condition on the branch pictured but I couldn't get it to work, the Death Function didn't kill my player.

So here's my death system. It's just OnActorHits of each of my enemies that leads to destroying the player pawn and changing the camera from the player's camera to a default one in the scene.

alt text

So with these to systems set up what's the easiest way to make it so the score system stops when the player is dead.

Product Version: UE 4.7
Tags:
halps.png (193.6 kB)
halps2.png (126.6 kB)
more ▼

asked Nov 14 '15 at 03:46 PM in Blueprint Scripting

avatar image

SICCSE7EN
6 4 7 8

avatar image Shadowriver Nov 14 '15 at 04:57 PM

"...the Death Function didn't kill my player."

Bool is way to go, so anwser yourself why it didn't work. Can you revive that old set up so we can solve it?

avatar image SICCSE7EN Nov 14 '15 at 05:56 PM

Ok, I messed with it again to make it how I had it before, here is the death function: alt text

Then here it is Where destroy actor used to be.

alt text

Casting to ball/ Not casting to ball gives the same result. Using an OnActorHit in the level blueprint/ making it an on actor hit in each character blueprint does the same thing. No matter how I play and change it It doesn't do anything.

Am I just doing something completely wrong? I learned this from a tutorial and then changed a few things to make it fit my needs but it all seems to make sense it just doesn't work. Idk, maybe I'm just stupid.

death.png (51.8 kB)
death2.png (184.2 kB)
(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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