Announcement

Collapse
No announcement yet.

Ignore Self with Sweeps

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

    Ignore Self with Sweeps

    Simple question: how do you ignore self with a sweep? In blueprint, there's a built in check. So before writing a method, I figured I'd ask if there's aleady a function or method for doing so. Otherwise I'll make a new collision channel.

    Here's my code so far:

    Click image for larger version

Name:	Capture.PNG
Views:	33
Size:	60.9 KB
ID:	1725734
    Also, while I'm here I'm trying to return the result of hit as a bool so I can check it via an if statement later on. It's been a while since I've done this. Am I doing that correctly? Later on, I should call it in the if without the parentheses correct?

    if(CheckGround)
    {
    // do something
    }

    Thanks.
    Attached Files

    #2
    Found an answer to my question:

    To ignore self, I used FCollisionQueryParams to define a trace parameter in which I could declare the object a something to ignore.

    Click image for larger version

Name:	Capture.PNG
Views:	27
Size:	8.4 KB
ID:	1725961

    I then added the parameter to my sweep code as such:

    Click image for larger version

Name:	Capture2.PNG
Views:	22
Size:	16.2 KB
ID:	1725962

    The post that helped me is here: https://forums.unrealengine.com/deve...help-thank-you

    Thanks!

    Comment

    Working...
    X