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 to trigger an event every frame two actors are touching?

The "hit event" Doesn't seem to work for what I'm trying to accomplish. (Look at the images below.)

alt text

alt text

alt text

Notice how when the player is moving into the wall, the event fires every frame, but when the player holds still, the event doesn't fire. The capsule is clearly touching the wall, but that doesn't seem to register as a hit.

How can I get the event to fire every frame they touch?

Product Version: UE 4.15
more ▼

asked Mar 24 '17 at 12:59 AM in Blueprint Scripting

avatar image

179 14 19 30

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You could try casting first to see what you are colliding with and setting a bool variable "Colliding" to true on OverlapBegin instead of hit and false on OverlapEnd. Then use a tick event to do whatever. Not sure if that's the best way but it is a way.

alt text

more ▼

answered Mar 24 '17 at 02:13 AM

avatar image

161 13 17 32

avatar image JerichoBLT Mar 24 '17 at 03:34 AM

Thanks for the help! But there's another problem:

You see, I need to get "impact info" (not sure what it's called) off the collision. (In this case I need "Impact Point" and "Normal.")

alt text

When I was using the "hit event" it worked perfectly fine, but now with the "overlap event" it doesn't work at all! All the values return zero!

I did some research on this, and apparently, this feature of Unreal Engine hasn't even been made yet! But it should be added some day in the future... *Sigh... maybe I should just wait until then...

avatar image JerichoBLT Mar 24 '17 at 04:01 AM

Update: Not entirely sure if they're planning to add this, it's just a rumor...

(I sure hope they add it!)

(comments are locked)
10|2000 characters needed characters left
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