Linetace going on and off by the tick

Do you rotate your actor once it hits the wall?

Your linetrace would miss since it uses the rotation to get the forward vector.

I’m using a Linetrace to detect walls, started by “event tick”. I’ve been able to get the wall walking kind of working. But my main problem is that the Linetrace is going on and off even though it should only be on when hitting the wall:

Here is the script:

I’ve tried using Box Collisions:

but I got the same result:

245479-boxcolonoff.jpg

I found the culprit: I used sequence directly after the tick event to make everything a bit more tidy. When I removed it and plugged in everything after each other the on/off stopped:

Edit: It wasn’t just the sequence but the update animation that was also using the tick event the line trace starts that on/off when it’s together with the update animation.

245482-fix.jpg