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"

Fire an event with KillZ

Hi!

I was wondering if there's an event that exists in blueprint that triggers when the player is destroyed by the KillZ. When the player gets destroyed by the KillZ, I would want an event to fire, so that it triggers the death I have already made in blueprint. At the moment, if the player falls out the world, he just disappears after a short while and the game is kind of soft-freezed because nothing happens after that. So let's say for example the player glitches through the world, I would want to at least have that safety net that when he hits the KillZ, he still dies like normally and gets respawned, so that he doesn't have to manually close the game and restart (That would be quite bad).

Or, if anything, a way to turn off the KillZ entirely and I guess I could add a gigantic trigger for fail-safe under the world that triggers the death, but I would like to find another solution than this if possible.

If you have any question or need precisions, let me know!

Thank you very much!

Product Version: UE 4.13
Tags:
more ▼

asked Sep 08 '17 at 10:05 PM in Blueprint Scripting

avatar image

Maxime Vézina
15 7 7 11

avatar image vincelord Jan 07 '18 at 12:52 PM

bump! found out anything in meanwhile?

avatar image Maxime Vézina Jan 07 '18 at 04:48 PM

Sadly not! :(

avatar image vincelord Jan 08 '18 at 09:07 PM

someone answered. the solution seems pretty good to me. i could live with that

avatar image Maxime Vézina Jan 08 '18 at 09:09 PM

It does indeed work!

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

1 answer: sort voted first

you could bind an event on the pawns destruction. When the player pawn hits the killZ it gets destroyed so you would just get a reference to the pawn at begin play and bind event on destroyed then have your respawn based on that. You'd have to do some check based on Z location and probably come up with a better way to determine where to respawn, but as the basics go its not really any different than a normal death.

alt text

respawn.png (192.0 kB)
more ▼

answered Jan 08 '18 at 04:04 AM

avatar image

ThompsonN13
10.1k 33 10 25

avatar image Maxime Vézina Jan 08 '18 at 09:09 PM

Thank you very much for the help, it works! :) Really appreciate it!

avatar image ICEMAN220 Jan 02 '19 at 02:08 PM

Thanks, man! Really appreciate! It helped me alot :) I just needed to make some game over screen when player dies in killz and it helped me

(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