Announcement

Collapse
No announcement yet.

Check specific actor that is overlapping the player

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Check specific actor that is overlapping the player

    Hello, I would like to check for a specific actor that is currently overlapping the player.

    In the 'other actor' it should check the asset that the player is overlapping from the hierarchy in the level but it does not seem to work as my boolean does not return true.

    Click image for larger version

Name:	CheckSpecificOverlap.png
Views:	1026
Size:	76.8 KB
ID:	1507848

    #2
    Hey, first I have a question does the other actor have a collision?
    if yes try going into the BP of the object you want to collide with and check if generate overlap events is enabled.

    how is your bp setup what components do you use?

    I made a quick BP hope it helps you.
    Click image for larger version

Name:	CollisonChecker.JPG
Views:	1016
Size:	223.6 KB
ID:	1508513

    You always need some kind of collision in your BP which is overlapping to receive any overlap events.

    Comment


      #3
      give your actor a collision primitive and click on it to show green box event (on overlap) down the bottom right screen
      normally you use begin overlap from the other actor /component output and hook up your actor or component ref.
      I have never seen it used like this with a actor position location before
      Artstation

      Comment


        #4
        I don't know if it's really what you are looking for but you can check if the said actor belongs to a class. Get your "other actor" node and plug it to a "get class", from there get a "==" node and do your test.

        Comment


          #5
          Originally posted by Agln View Post
          I don't know if it's really what you are looking for but you can check if the said actor belongs to a class. Get your "other actor" node and plug it to a "get class", from there get a "==" node and do your test.
          Yes, I used Agln's method for checking the type of object that is overlapping with the "get class" function. Thanks to all for the assistance.

          Comment

          Working...
          X