👀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:

  1. 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

  2. Trace Channel | Type: Enumerator

    • Visibility: Uses the Visibility collision trace channel

    • Camera: Uses the Camera collision trace channel

  3. Actors Class Filter | Type: Class Array

    • Filters Actors by their class

  4. Actors Specific | Type: Actor Array

    • Filters Actors by directly referencing the desired actor to detect

  5. 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:

Reference Setup

After setting up the laser, the "FOUND ACTOR" event is triggered.

The "FOUND ACTOR" event is inside the "BP_Laser_Parent", located at: Content -> Realistic_Lasers -> Blueprints -> BP_Laser_Parent

Continue your code by casting to the specific actor or any other desired events:

Last updated