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 can I do a simple death system?

Hi guys, I would create a death system for a character. I already created the death animation and an health bar but I don't know how set the death when life go to "0", someone could help me? Thanksalt text

This is the health bar system

Product Version: UE 4.17 Preview
Tags:
ue4question.png (206.8 kB)
more ▼

asked Aug 04 '17 at 11:10 AM in Blueprint Scripting

avatar image

Iofri2000
3 1 3 6

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

1 answer: sort voted first

Hey,

So you have the groundwork in, all you need to do is extended you event AnyDamage. Here is a basic example:

alt text

death.jpg (288.0 kB)
more ▼

answered Aug 04 '17 at 11:36 AM

avatar image

DanielOrchard
918 17 21 37

avatar image Iofri2000 Aug 04 '17 at 06:21 PM

Thank you very much!

avatar image zizoalb Feb 12 '19 at 04:04 PM

How would I make it so that when it dies, it ends the game?

avatar image Alex O ♦♦ STAFF Feb 13 '19 at 03:17 PM

An avant-garde idea: add a 'quit' node on death.

So that as the user is unexpectedly taken back to their desktop, they experience the finitude of our present situation.

(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