👾
Multiplayer Turret Documentation
  • 💬Welcome!
  • Tutorial
    • ‼️Getting Started
    • ⚒️Creating Your Own Turrets
      • Method 1 - Child Blueprints
      • Method 2 - Data Table Entry
  • Fundamentals
    • ↕️Configuration
      • Audio
      • Targets Config
      • Targeting Config
      • Rotation
      • Idle Rotation
      • Barrel Rotation
Powered by GitBook
On this page
  • Step 1 - Changing The Targets
  • Base Class
  • Actor Whitelist / Use Whitelist
  • Actor Blacklist / Use Blacklist
  • Example Targets Config
  1. Fundamentals
  2. Configuration

Targets Config

Brief explanation of how to configure the targets section

PreviousAudioNextTargeting Config

Last updated 1 year ago

Step 1 - Changing The Targets

By default the asset comes with an overview map with a playable demo character and a moving test target, however you may already want to integrate the turret into your own project, to update the targets the turret should fire at we need to change a few things in the "Targets" config you can see in the below picture.

Expand "Targets".

Base Class

The turret will check for any overlapping actors that are derived from the base class, in this case the default is set to pawn, it will then target anything that is derived from the pawn class unless a whitelist or blacklist is enabled.

Make sure anything you add to the whitelist or blacklist is at least derived from the Base Class or else they won't work.

Actor Whitelist / Use Whitelist

An array of actors, add actors to this array to filter them separately from the base class, useful if you want to add a blueprint derived from the Actor class but don't want to target all actors.

Actor Blacklist / Use Blacklist

An array of actors, add actors to this array to blacklist actors, these will not be targeted by the turret, useful if you want to exclude only specific actors.

Example Targets Config

The config below utilizes both the whitelist and blacklist function.

What happens now, the overlapping actors first get filtered with the whitelist array, if an actor from the whitelist is also blacklisted, that actor is then removed from the final array of targets. Useful if you want to whitelist a Parent Blueprint Actor but want to blacklist a specific Child Blueprint of that parent.

Every character is now whitelisted, but the Demo Character is blacklisted, this turret will now target all characters but not the Demo Character included in the asset.

This concludes the Targets Config.

↕️