Skip to main content

AI Turret (Blueprint edition)

AI-controlled turrets that detect, track and fire projectiles at enemies. The aim leads the target, so it accounts for the target's direction and velocity.

This edition is pure Blueprint: no C++, no Gameplay Ability System and no plugins beyond the engine defaults. It ships as an asset pack you add to any UE 5.7 or 5.8 project.

AI Turret Blueprint Edition

Key features​

  • AI perception targeting: turrets see enemies, track them and return to their base position when they lose them.
  • Lead angle calculation: shots intercept a moving target (BFL_Turret.CalculateFiringSolution).
  • Teams: friend/foe detection with the engine's default team rule, through a Blueprint interface (BPI_TeamAgent).
  • Health and destruction: a health component, damage states (sparks, smoke, fire), damage numbers, a health bar, and a destroyed turret that breaks apart.
  • Multiplayer: health and death state replicate, and the effects show on every machine.
  • No project settings: no collision channels, no Config/ files, no plugins to enable.

What's included​

  • Three turret skeletal meshes with Animation Blueprints for procedural aiming
  • BP_TurretPawn (dual barrel) and BP_TurretPawn2 (single barrel), with their AI controller and projectile
  • Niagara effects for muzzle flash, projectiles, damage states and the explosion; sound effects
  • The example map L_TurretExample with TeamPads and turret variants
  • Offline documentation in the pack: Content/AITurret/Documentation/QUICKSTART.md

Which edition?​

The AI Turret comes in two editions. They are equal choices; pick the one that fits your project.

  • Blueprint edition (this one): for most projects. Pure Blueprint, easier to integrate: no code module, no plugin to enable.
  • C++ plugin: for large, performance-critical projects. Targeting and tracking run in native code.
Blueprint editionC++ plugin
Unreal Engine5.7 – 5.85.4 – 5.8
Ships asAsset pack in Content/AITurretCode plugin
Targeting and trackingBlueprintC++
Settings, meshes, effects, damage handlingBlueprintBlueprint (children of the C++ classes)
TeamsBPI_TeamAgentIGenericTeamAgentInterface
Turret health and destructionIncluded: health, damage states, debrisNot included; add your own
ProjectilesExpire after 5 secondsFly until they hit
Dual barrelsConverge on the targetFire parallel

System requirements​

  • Unreal Engine: 5.7 – 5.8. The assets are saved with 5.7 and do not open in older versions.
  • Tested on: Windows.
  • Dependencies: none beyond the engine defaults (Niagara, Enhanced Input).

Get the asset pack​

Next steps​

  1. Quick Start: install, play the example map, place a turret.
  2. Example Map: what the demo shows and its controls.
  3. Customization: teams, tuning, damage, multiplayer.
  4. Blueprint Reference: every Blueprint, property and function.

Support​