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 do i make a simple death System?

Sorry for my bad English, but i am German. I want to make a simple death System for my Third Person Player Character, where the Enemy ran into me and the Character disappear. All my Attempts does not work. Can you give me any Tips.

Product Version: UE 4.9
Tags:
more ▼

asked Oct 09 '15 at 01:28 PM in Blueprint Scripting

avatar image

Kay Jersch
16 7 13 14

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

2 answers: sort voted first

Hello Kay Jersch,

To make a death system, you'll want to set up an OnComponentHit event for your enemy's character. On this hit, you'll need to cast to your player character (in your case, third person character) to ensure that this is the object you're hitting. Then, add a destroy actor node to destroy your player character. On my blueprint, I added a print string just for verification purposes, but this is not necessary in your case. Let me know if you have any questions about how to get it set up properly.

alt text

death.png (125.6 kB)
more ▼

answered Oct 09 '15 at 02:27 PM

avatar image

Sean L ♦♦ STAFF
43.6k 485 152 442

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

Thanks. It works

more ▼

answered Oct 09 '15 at 02:50 PM

avatar image

Kay Jersch
16 7 13 14

(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