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 kill my character if he stops running or moving

I'm making an endless game and I want my character to be killed if he stop running or moving.

Product Version: UE 4.17
Tags:
more ▼

asked Nov 08 '17 at 07:15 PM in Blueprint Scripting

avatar image

CAS GAMES
1 1

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

2 answers: sort voted first

I think for real game, here should be some better logic, but as answer, try this:

alt text

more ▼

answered Nov 08 '17 at 11:23 PM

avatar image

Vaheva
1.3k 24 29 52

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

Do you really need it to be killed/destroyed?

Maybe it is better to simply play some "death" animation, show some "Game Over" UI and restart level?

If you want to destroy it, you will need to respawn it again and maybe get some errors if something referencing it.

more ▼

answered Nov 09 '17 at 08:19 AM

avatar image

redbox
4.3k 81 19 104

avatar image Vaheva Nov 09 '17 at 03:22 PM

You are generally right, but he asking how to kill on zero speed not how to deal with killed characters..

(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