Skip to main content

Setup Guide

From install to a firing turret in your own level.

At a glance​

  1. Install the plugin from Fab and enable it in your project.
  2. Turn on Show Plugin Content in the Content Browser.
  3. Open Examples/Maps/TurretExample and press Play.
  4. Drag Turret/B_TurretPawn into your level.

Paths on these pages are relative to the plugin's content folder, AITurret Content in the Content Browser.

1. Install​

In the Epic Games launcher, open Library, find AI Turret and click Install to Engine. Pick an engine version from 5.4 to 5.8.

To ship the plugin with a project instead, copy the AITurret folder into the project's Plugins folder. Create Plugins next to the .uproject file if it does not exist.

2. Enable the plugin​

  1. Open your project and go to Edit → Plugins.
  2. Search for AI Turret and tick Enabled.
  3. Restart the editor when asked.

3. Show the plugin content​

In the Content Browser, click Settings (top right) and tick Show Plugin Content. AITurret Content now appears in the folder tree.

4. Play the example map​

Open Examples/Maps/TurretExample and press Play. Walk towards a turret: it turns to you and fires. See Example Map for the controls.

5. Put a turret in your level​

Drag Turret/B_TurretPawn (dual barrel) or Turret/B_TurretPawn2 (single barrel) into your level. It finds its targets with AI perception, so the level needs no NavMesh.

A turret attacks every pawn that has no team or another team than its own. To keep it from attacking your player, see Teams.

Content layout​

FolderContents
TurretB_TurretPawn, B_TurretPawn2, B_TurretAIController, B_TurretProjectile
Turret/animationsABP_Turret, ABP_Turret2
Turret/meshesTurret1 (dual barrel), Turret2 (single barrel, low poly), Turret3 (single barrel, high poly)
Turret/vfx, Turret/audio, Turret/materials, Turret/texturesEffects, sounds, materials, textures
MaterialLibraryDecals on the turrets
ExamplesThe example map, its Blueprints and input, and the third-person template content it uses

Troubleshooting​

No AITurret Content in the Content Browser. Turn on Show Plugin Content and check that the plugin is enabled.

No muzzle flash or projectile trail. Enable the Niagara plugin and restart the editor.

The project does not compile. Use an engine version from 5.4 to 5.8. In a C++ project, regenerate the project files and rebuild.

The turret does not fire at you. Your pawn or its controller has the turret's team. See Teams.