Setup Guide
From install to a firing turret in your own level.
At a glance
- Install the plugin from Fab and enable it in your project.
- Turn on Show Plugin Content in the Content Browser.
- Open
Examples/Maps/TurretExampleand press Play. - Drag
Turret/B_TurretPawninto 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
- Open your project and go to Edit → Plugins.
- Search for AI Turret and tick Enabled.
- 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
| Folder | Contents |
|---|---|
Turret | B_TurretPawn, B_TurretPawn2, B_TurretAIController, B_TurretProjectile |
Turret/animations | ABP_Turret, ABP_Turret2 |
Turret/meshes | Turret1 (dual barrel), Turret2 (single barrel, low poly), Turret3 (single barrel, high poly) |
Turret/vfx, Turret/audio, Turret/materials, Turret/textures | Effects, sounds, materials, textures |
MaterialLibrary | Decals on the turrets |
Examples | The 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.