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"

Actor never detect overlapping

Hi everyone.

I'm trying to do something similar to a portal mechanics. With keft button mouse you create the actor "BP_Portal1" and with the right mouse button you create the actor "BP_Portal2". They create correctly but the problem that I'm having is that they never detect overlapping with player to make the teleport. I have set breakpoints in the overlapping events before anything else but they never fire.

If someone can take a look at it, here you have: https://drive.google.com/open?id=1-nk2BpRJzC2-z1j4gtXyaoY4esTGVntQ

alt text alt text alt text alt text alt text

Product Version: UE 4.17
Tags:
boceto0.png (566.8 kB)
boceto.png (448.8 kB)
boceto1.png (244.5 kB)
boceto2.png (239.3 kB)
boceto3jpeg.png (511.2 kB)
more ▼

asked May 29 '18 at 01:14 PM in Blueprint Scripting

avatar image

THA
6 1 3

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

2 answers: sort voted first

Hey, make sure you have "generate overlap events" ticked on your other actors that you want to overlap with.

more ▼

answered May 29 '18 at 05:27 PM

avatar image

FlameOfIgnis
399 5 4 13

avatar image THA May 29 '18 at 06:30 PM

Yes, they have it activated. The portal mesh inside the BP_Portal0X has it activated and the same with the FirstPersonCharacter capsule component. So I'm trying to detect overlap with the BP, it should detect Overlaps with any of the components of itself or not?

avatar image FlameOfIgnis May 29 '18 at 06:37 PM

Does your portal have collision? Can you add a box or capsule collision to your BP_portal, and try it again?

avatar image THA May 29 '18 at 06:45 PM

It doesn't have any collision component. I just added a box collision but there's no difference

avatar image FlameOfIgnis May 29 '18 at 06:50 PM

For something to overlap, it needs to have a collision component. However, i'm not sure why its not working after you add a box collision to the portal.

On your BP_portal event graph, can you add a the event "On Component Begin Overlap (box)" and connect a print string to it? just to see if it is caused because it is being handled in level blueprint.

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

I was trying that right now haha. So if i check the overlap inside the BP_portal event graph itself, theres is no problem, the breakpoint fire on overlapping. The thing is, if I place the portal in the level manually it detect overlapping too. So the problem comes when I create the portals through the FirstPersonCharacter_BP but doesn't know why

more ▼

answered May 29 '18 at 07:02 PM

avatar image

THA
6 1 3

avatar image FlameOfIgnis May 29 '18 at 07:09 PM

Oh, i hope i didn't misunderstand, those overlap checks you have on the level blueprint are instance-only. Notice how it says (portal1).It means that only the portal1 you have that you placed in your map overlapping will trigger that event.

So if you create a new portal in-game, your level blueprint needs to have another event for that new portal, and while it is possible (by getting all instances of class), it is very inefficient.

I recommend you to use the actor blueprint instead, so every instance of your portal checks if itself is overlapping, instead your level checking every portal and checking if they are overlapping.

avatar image THA May 29 '18 at 07:11 PM

Thanks, I finally solved it by this way at the same time you were writing. Thank you for the Help! ;)

avatar image FlameOfIgnis May 29 '18 at 07:12 PM

No problem, happy to help ^^

(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