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"

How do I generate overlap events for specific actors?

So I have an "OnActorBeginOverlap(first person character)" which does work in making the player the only person who can generate overlap events. The problem is that for some strange reason the overlap event is being triggered even when I'm nowhere close to the trigger. It's not like the normal overlap event which only triggers when something actually overlaps with it. With this, it triggers the event even if the player is standing far away from the trigger and just moves or jumps. So is there a better way to make it so that just the player can activate this overlap event?

EDIT: Part of me is thinking that I'm doing this whole overlap but only for specific actors correctly. So what I did was create a variable for my first person camera and then on the side I selected the overlap even so I have a node that says "OnActorBeginOverlap (first person character). Is that the correct way to do an overlap event only for the player? I feel like there's a better way to do that.

Product Version: UE 4.9
Tags:
more ▼

asked Nov 15 '15 at 06:13 AM in Blueprint Scripting

avatar image

Brandon236
83 28 37 44

avatar image zacharymwade Nov 15 '15 at 03:18 PM

Is this overlap bounds on a separate actor? The way you typed it is that the character actually has the bounds on him.

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

1 answer: sort voted first

You could make a new type of collision.

1: - Enter Project Settings in: EDIT -> Project Settings ----- 2: - Go to: Engine -> Collision ----- 3: - In "Object Channels" click on "New Object Channel" -----alt text

4: - Add a new one, you can choose Overlap as the default response. ----- 5: - Go to you player and make sure "Generate Overlap Events" is on. ------ 6: - Change Collision Presets to Custom, and make sure the collision you just added is OVERLAP -and that none other option is set to Overlap.- ( Use this in "- -" only if you want none other type of object to overlap ) ----- alt text

P.S. Make Sure that in the Trigger, you have OVERLAP events triggered and that the Player ( Pawn ) is set to Overlap.

Hope that Helps!, Alanzote.

screenshot_1.png (83.2 kB)
screenshot_2.png (27.3 kB)
more ▼

answered Nov 15 '15 at 05:24 PM

avatar image

Alanzote
143 14 16 26

avatar image Brandon236 Nov 22 '15 at 01:47 AM

That just made things even worse. In my first person controller, there's two places for collisions. One is set to pawn and the other is set to character mesh by default. So which one should I use for the custom collisions?

(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