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"

Hit events not firing

Hi! In my game, I have a collision box wrapped around my enemy's character so that it detects when a player gets near it. I'd like to use the hit events for this, but it doesn't seem to work. I do have it enabled, as you can see here:

alt text

When the player overlaps, however, it does not fire. It has something to do with the collision box, because when I replaced the collision box with a regular mesh box instead, it actually fired.

Any help?

Thank you!

Product Version: Not Selected
more ▼

asked Mar 24 '15 at 08:51 PM in Blueprint Scripting

avatar image

326 45 62 72

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

1 answer: sort voted first

Fixed... It? Apparently it has to block for it to fire. Huh.

more ▼

answered Mar 24 '15 at 08:53 PM

avatar image

326 45 62 72

avatar image Arty-McLabin Sep 17 '17 at 04:16 PM

when your collision preset is set to "OverlapAll", nothing will hit it - instead just get trough

avatar image DesertEagle_PWN Nov 21 '17 at 07:43 AM

For more insight:

As Arty mentioned, the "OnHit" events fire on blocking physics collisions. This requires that the component have Collision Enabled option set to allow Physics Collision (i.e. Physics Only or Collision Enabled) and that the collision responses between the objects is set to Block. Overlaps, though they require physics query to be enabled, are not themselves considered "physics collisions" and thus don't trigger OnHit Events.

(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