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 for player overlap specific actor

Hello, I am currently trying to make a check that detects what type of actor the player is currently overlapping.

However, it does not seem to return the boolean as true so I am looking for either a fix to this or alternatives for me to check for a specific actor overlap.

alt text

Product Version: UE 4.20
Tags:
more ▼

asked Jul 28 '18 at 02:52 AM in Blueprint Scripting

avatar image

Vokzole
5 2 2 5

avatar image Nebula Games Inc Jul 28 '18 at 03:06 AM
  1. Is this in the player BP and the "overlap event" is checking player against "another actor"?

  2. What is the actor you are trying to check against?

  3. Are collisions set up properly for these actors to register an overlap?

  4. Does the system register an overlap and it exits the branch as "false" (you need to print string after to see if this is the case)

  5. Where is the actor reference going when it goes off screen? (the blue line heading down)....this is almost certain to cause an error of some sort, having a reference created by one event in one execution pathway be an input for a separate pathway of execution is a bad idea

  6. Your end overlap will fire off for any actor that happens to trigger this "end overlap" event. This can cause your booleans to always be false, you should check against the same actor as "on overlap" for this to make logical sense

avatar image Vokzole Jul 28 '18 at 10:09 AM

1) Yes, the player bp is checking for a specific actor in the 'another actor'.

2) Right now, I have a pressure plate-like object that detects whether the player is standing on top of it.

3) Yes, both actors can check for overlapping between each other.

4) Yea, I did a print to check when the player is on the object or when the player exits the object.

5) This one links to a 'cast to' that looks for that specific class, I believe I linked the class back into the equal variable to see if the 'other actor' is also the same as the casted actor that I have designated.

6) This one I tried with the similar check to see if the 'other actor' is the same as the casted actor.

alt text

Thanks for the reply, hope some of these information would help solidify my solution.

avatar image Nebula Games Inc Jul 28 '18 at 11:32 AM

I honestly think your issue lies somewhere in all those blue reference wires that are off screen going to execution paths that are not part of the path creating the reference. Are you getting error messages when you run this code and actually attempt an overlap?

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

0 answers: sort voted first
Be the first one to answer this question
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