👀Detection Setup
Laser Setup
The detection system works by tracing a line and returning a detected actor. For the laser to detect an actor, it requires the actor to "BLOCK" the "VISIBILITY" or "CAMERA" trace channels.

The Detection System has 5 parameters:
Detection Method | Type: Enumerator
None: Disables Detection
Interface: Passes the detection signal by messaging the "BPI_Detection" interface
Reference: Passes the detection signal by custom event or cast
Trace Channel | Type: Enumerator
Visibility: Uses the Visibility collision trace channel
Camera: Uses the Camera collision trace channel
Actors Class Filter | Type: Class Array
Filters Actors by their class
Actors Specific | Type: Actor Array
Filters Actors by directly referencing the desired actor to detect
Actors to Ignore | Type: Actor Array
Filters Actors by directly referencing any UNWANTED actors

Interface Setup
For the target to receive input, the Target Actor has to implement the "BPI_Detection" Interface.
The "BPI_Detection" interface is located at: Content -> Realistic_Lasers -> Blueprints -> BP_Laser_Parent

To add the "BPI_LockOn" open the desired blueprint that you would like to target then go to: Blueprint -> Class Settings -> Details -> Interfaces -> Add

Implement the "DETECTED" event from the interface:

Continue with your desired code:

Last updated
