Line Trace for Objects how to ignore actors?

The simple solution is to open your character blueprint, take all the components in the components list, select htem, go the Physics panel in the Details panel and under collission click the arrow so you get the list (camera, worldstatic, worlddynamic etc.) and make sure camera and trace is set to ignore instead of block now traces will go straight through your character.

I bleive your Physics enum array is the error.

I also suggest using the LineTraceByChannel node and then take the return value → break structure and drag off “Other Actor” and do a check if its the item you want (ie you could drag off and do an == (equal to?) node to check if what you traced is the item you select in the list.

You can even do a forEachLoop on the trace after for an array of items using the otherActor information. It will tell you exactly what it hit.

Hope this helps
Don’t forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.

1 Like