Hi, I am new to Lite-C and 3DGS. How do I code a turret to scan and shoot the first entity it detected on sight?

Any advice would be appreciated.