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"

Check component overlap issue

Hello, Can someone tell me what the issue with this blueprint is? alt text

This function is called in an event that triggers in OnEventTick. For some reason it never gets passed the branch nodes. I have assured that this function does call every tick, but I don't understand why it doesn't trigger the overlap. Am I using the 'Is Overlapping Actor' node wrong? Is there a different node I should be using?

Product Version: UE 4.12
Tags:
untitled.jpg (89.4 kB)
more ▼

asked Jul 26 '16 at 02:51 PM in Blueprint Scripting

avatar image

TornadoStorm
102 18 20 24

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

1 answer: sort voted first

Hi there, you need to stick in an Actor to the "Other" pin of your IsOverlappingActor node.

If you want to check if the Actor - that contains your function - is colliding, then you need to connect the "Self"-node. And I guess you just want to stick PreviewOverlap directly into the first branch without doing an NotEqual. Assuming it is just an Option to enable collision check.

happy debugging, Marooney

more ▼

answered Jul 26 '16 at 04:14 PM

avatar image

Marooney
891 36 8 37

avatar image TornadoStorm Jul 26 '16 at 04:45 PM

Hi! Thanks for the quick reply, is there any way I can check if any actor/component is overlapping the object?

avatar image Marooney Jul 26 '16 at 05:36 PM

Sure. Within your actor just drag your component where you have configured your collision (mesh or collider) into the EventGraph and add a GetOverlappingActors node where you specify the class (Actor for everything) or (Pawn or Character or so for players only). Then you will get an Array of them. If the Length is > 0 then it is colliding.

avatar image TornadoStorm Jul 26 '16 at 05:49 PM

Yes that was exactly the issue! Thanks you! Please mention this in the answer so that others may see it

avatar image Marooney Jul 26 '16 at 06:26 PM

:) Yep you are right :) But people have different issues anyway when looking up such posts, and they can read the comments too if required :)

(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