You need to check the ReturnValue from LineTraceForObjects. You have an == test for HitActor, but the OutHit struct is only valid when LineTraceForObjects returns true. So your condition should be: ReturnValue AND HitActor==MainCharacter. The Set NewVar node isn’t needed.