Hey-
It appears you’re trying to detect if something is blocking the door before it opens, correct? How is the function SetDoorRotation() being called? Also, what is the value of the rotator that is being passed into the function? Additionally, the start and end locations of the trace are along the Z-axis. This trace won’t detect something blocking the door along its opening path.
An alternative method you could use would be to use the door’s collision to check either an OnHit or OnOverlap event and if the event is triggered, then stop how the door is opening (if it’s an animation or you’re setting a new rotation).
Cheers