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"

How to quit game when player's health is at 0?

Hi, I'm having troubles with making the game quit when the player's health is at 0. I was wondering if anyone could help me with this, because this is very frustrating. Basically, the character's health reaches 0, but the game doesn't quit. Here's an image that will hopefully show you the mistake. alt text

Product Version: Not Selected
Tags:
capture.png (194.3 kB)
more ▼

asked Mar 30 '15 at 02:11 PM in Blueprint Scripting

avatar image

AkatoshReturns
33 16 19 23

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

1 answer: sort voted first

Something must be wrong with the IsValid or the Cast to nodes. Try debugging during the game and see if the connections light up.

more ▼

answered Mar 30 '15 at 10:01 PM

avatar image

alperenakyuz
2k 62 24 111

avatar image AkatoshReturns Mar 30 '15 at 10:31 PM

It doesn't seem to be working at all. The connections don't light up, but I have no idea on how to fix it.

avatar image AkatoshReturns Mar 30 '15 at 11:16 PM

Okay, I fixed the casting, but I'm having problems with actually making the game quit when the health is at 0. Basically,right now the health reaches 0, and then does nothing. I tried a bit of experimenting, which has led to the player's health reaching 0 instantly, which is something that I don't want. Any help will be greatly appreciated.

avatar image quintendc Mar 30 '15 at 11:46 PM

hi i have made something that maybe will help you i have made a actor that apply damage to the character alt text

quit game.png (153.4 kB)
avatar image AkatoshReturns Mar 31 '15 at 09:00 AM

The first image did the job. Sorry for the late reply, I was sleeping. :P Thank you so much for your help! The AI character that I've implemented affected the health of the character. All I needed was the <=

avatar image quintendc Mar 30 '15 at 11:32 PM

hi is there an actor or something that will take damage i will try to recreate what youre doing

(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