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"

Crushing player with physics

Hello,

How can I have my in-game character trigger a death when either slowly crushed by a heavy physics-simulated object, or hit really hard with one? I've got everything prepared (death animations and all) so all i require is how to trigger death through this.

Basically what I would like is for the player to trigger a death, when an object exherts a defined amount of force on it. This could be due to momentum, weight etc.

Thanks in advance!

Product Version: UE 4.11
Tags:
more ▼

asked May 02 '16 at 06:06 PM in Using UE4

avatar image

TornadoStorm
102 19 20 24

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

1 answer: sort voted first

Just use collision volumes. On Overlap, have the death animation play/enable physics, whatever you want.

more ▼

answered May 02 '16 at 06:08 PM

avatar image

VictorBurgos
2.4k 61 27 115

avatar image TornadoStorm May 02 '16 at 06:27 PM

how can I have my in-game character trigger a death when either slowly crushed by a heavy physics-simulated object, or hit really hard with one? I wouldn't want it to just kill the character on touch :p I'm wondering how the character can be killed through high momentum collisions and high weight forces acting on the body

avatar image VictorBurgos May 02 '16 at 06:29 PM

Then you just need to write that exact logic, but you'll still need collision volumes to start that event.

  • Collision Volume

  • Overlap

  • Logic with bools

  • If heavy enough

  • Kill Player

  • If not heavy enough

  • Don't kill player

  • Play appropriate animations

avatar image TornadoStorm May 03 '16 at 07:07 AM

Okay I came up with an idea that the player could somehow detect the magnitude of forces acting on it. Once it reaches a certain limit the player dies. Is there any blueprint function to detect magnitude of force from an object acting on the player? If not, how would I go about it?

(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