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 make a player only overlap event?

What I'm trying to do is making an overlap even so only the player can trigger the overlap event because right now any object that's set to generate overlap events will trigger this overlap event. So I've set up an overlap event which uses a variable to make a player only overlap event. The variable is an object reference to the first person character object which is the player. It looks like this:

alt text

What's happening is for some reason the blueprint keeps on activating even when I'm not overlapping with the object. It's really weird because while it is a custom mesh, I did set the collisions and when I just use the regular overlap event it works like normal (meaning it doesn't activate when the player isn't overlapping) but when I use this node it activates even when the player isn't overlapping with the actor. So how can I fix this?

Product Version: UE 4.8
overlap.png (18.3 kB)
more ▼

asked Nov 24 '15 at 06:51 AM in Blueprint Scripting

avatar image

88 28 38 45

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

1 answer: sort voted first


Not sure to completely understand but I may provide some help for your main problem : - you can use tags => tag the player pawn with "Player" and check if OtherActor has the "Player" tag - you can use cast => cast your OtherActor in the class of your pawn/player. If it succeed, it is your player. But be careful, if you use other pawn (like AI) - you can use collision system (I think it is the best one) to ignore/overlap/block => if you are not ease with that, I recommend you to check out this : https://www.unrealengine.com/blog/collision-filtering, and then create your custom collisions channels.

I didn't find tuto or doc but you should check in Project Settings > Collision. From here, you can make new object channels. So, in your situation, the best will be to have a new channel Player and an other one for your trigger, that will ignore everything, except the Player, that will overlap.

Hope it helps.

more ▼

answered Nov 24 '15 at 09:14 AM

avatar image

928 32 27 50

(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