Hi,
You could go with a linetrace function on a loop and just fire off to the side/s. This is an example for firing a linetrace 100 units to the left of where camera is. You can use a boop and if (branch) to enable/disable your camera shift script.
Consider doing it another way. You can have a collision box/sphere around you camera and you can use overlap begin/end events to set your bool that way. I haven’t actually tested this but it might be better idea then having a constantly running linetrace. I tested the line trace and it does work as intended.
Please let me know if this was helpful at all. Thanks.