Ignore actors in a sweep

Hello.

I have this platform that goes up and down. If there is something else that isn’t the character, then I want it to stop, so I check the ‘sweep’ box when I set it’s delta location.

How can I set it to ignore the play character when it sweeps?

What you could do is to check the result of the sweep and see what actors have been hit.

Drag a pin off Sweep hit result and break the result. Use Blocking Hit to test if something has been hit or not in a branch. Use Hit Actor to test what actor has been actually hit. If it is not the player then you can stop the platform from moving. Either by stopping the simulation of the platform or by stopping whatever code you have moving the platform.

What you could do is to check the result of the sweep and see what actors have been hit.

Drag a pin off Sweep hit result and break the result. Use Blocking Hit to test if something has been hit or not in a branch. Use Hit Actor to test what actor has been actually hit. If it is not the player then you can stop the platform from moving. Either by stopping the simulation of the platform or by stopping whatever code you have moving the platform.

I’m using a set world location node, so I only want to move the actor if the sweep meets a certain requirements (in this case if it’s not hitting another actor)

What can I do?

sweep only works with the root component.

You can make an object channel, specifically for your player character, assign it to your character and ask your platform to ignore that channel. Of course, this means you’ll have to update all your other items where it would have originally treated your player character in the pawn object collision channel.