Announcement

Collapse
No announcement yet.

Error when checking tag of object hit by trace

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

    Error when checking tag of object hit by trace

    Click image for larger version

Name:	Screenshot_1.png
Views:	1
Size:	99.5 KB
ID:	1216242

    I keep getting the following error whenever the above graph executes

    Click image for larger version

Name:	Screenshot_2.png
Views:	1
Size:	6.3 KB
ID:	1216243

    #2
    Try a validation check before your branches is the actor valid? True then try the tag check.
    Inphidel / Brian - Developer of Ultraball
    http://www.ultraballgame.com

    Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

    Comment


      #3
      I added the node

      Click image for larger version

Name:	Screenshot_1.png
Views:	1
Size:	117.9 KB
ID:	1126175

      The result is Not Valid.

      I checked the Return Value of the LineTraceByChannel node and it returns false when it hits the player and returns true when it hits any other object.
      Last edited by 1User12; 04-08-2017, 04:39 PM.

      Comment


        #4
        It's tracing for anything visible. So anything viable should return valid and if you turn on debug you'll see the squares where it's hitting.

        As for player tag it will hit an actor and if it doesn't have the tag it should result false and true if it has the assuming this is single player as I'm not sure how replication is handled with tags
        Inphidel / Brian - Developer of Ultraball
        http://www.ultraballgame.com

        Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

        Comment


          #5
          Fixed it by adding a cylinder to the Player blueprint as a body rather than having just the invisible capsule collision, add the tag to the cylinder.

          Thanks for the help

          Comment

          Working...
          X