RTS/RPG Unit Template - Multiplayer - Gameplay Ability System

Silvan Teufel - Code Plugins - Nov 16, 2022

Create your own RTS/RPG Unit

  • Supported Platforms
  • Supported Engine Versions
    5.0 - 5.4
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.
  • Promotional Content
    Contains Promotional Content
    The creator has indicated this digital content promotes a brand, product, or business (whether their own or someone else’s).

Create your own RTS Unit with the RTSUnitTemplate-Plugin, which is written in C++.

If you encounter any problems, crashes, bugs, or if you need support,

please do not hesitate to contact me

via email: [email protected].

via discord: https://discord.gg/yWBNm4VpBq

If you are not satisfied with the product or support, I guarantee a refund via PayPal, and you can keep the plugin!

For Gameplay preview please see the Videos below:



For Camera preview please see the Video below:


For Pathfinding preview please see the Video below:


For the Speaking Unit please see the Video below:


For the Healing Unit please see the Video below:


For the SpawnPlattform please see the Video below:


For the AutoCam please see the Video below:


V4.8.1 (24.07.2024) - in Review

  • Hiding Widgets and Meshes of Characters and Projectiles if they are out of Viewport -> Higher Performance
  • Fixed a detection Issue in UnitController, which lead to wierd Animation.

V4.7.1 (21.07.2024)

  • Ability and Talent Widgets Works now with Tags
  • Every Unit with same Tag gets the Abilitys and Talents applied.
  • ResetCollapseHealthbar Function hast a Time now (if you want to make it visible for x seconds)
  • Added PlayerController -> WidgetController between CameraControllerBase and ControllerBase

V4.7.0 (13.07.2024)

  • Fixed Unit Selector Widget
  • Fixed Unit Run without Attack Command (T-key) leads not to a Attack
  • Fixed Workes with Collisions get stuck into each other
  • Fixed Patrol and Run Units get stuck

V4.6.3 (14.06.2024)

  • Added SquadID to the Unit
  • Added Bool bSelectFullSquad in HUD
  • If bSelectFullSquad = true and you select a Unit with SquadId = X you will select all Units with SquadId = X
  • This is more an approach to control Units in Squads like in Civ

V4.6.0 (23.05.2024)

  • Performance increase by reworking and collapsing Widgets
  • Added prototype for drag & drop spawnplatform
  • Fixed AI controller to prevent units from clumping up
  • Reduced AI controller tick for performance

V4.5.8 (01.05.2024)

  • Bugfix - There is an Issue with a Endless loop if the Surface is not a Landscape (and the Unit is in State Patrol Random) which will be fixed with this Patch. You can then choose a Seconds Landscape Class.

V4.5.7 (16.04.2024)

  • Update to UE 5.4
  • Speed Check (Fixes that on some terrain, units could sometimes walk on place)

V4.5.6 (16.04.2024)

  • Added chooseable worker distribution to the Resource GUI
  • Choose how many workers work on which resource

V4.5.5 (04.04.2024)

  • Bugfixes in AI-Controller
  • Improved Perception for different unit states
  • Set WalkSpeed to 0 for different unit states

V4.4.2 (15.03.2024)

  • Added Casting Example to the Abilitys
  • Added Investing in to Ability and using Invested Points to change (casttime, size, range, count) of abilitys.
  • Fixed HealthReg lead to Resurrection
  • Rework Unit Detection in Controller

V4.3.1 (13.02.2024)

  • Pickup and Drops (With Gameplay Effects)
  • Worker and Resource
  • First two Buildingtypes Bases (to deliver Resources) and Towers.

V4.2.0 (28.01.2024) - Video

  • Ability Interface -> Choose 4 out of 16 Abilitys for Every Unit
  • Diversified EffectArea for more Abilitys
  • Diversified Projectile for more Abilitys

V4.1.3 (15.01.2024)

  • Teleport Ability (for Ranged)
  • Charge Ability (for Meeles)
  • EffectArea Ability (AOE Attack)
  • Projectile with Effect

V4.0.0 (28.12.2023) - Video

  • Gameplay Ability System
  • Attributes in Attribute Class
  • Levelsystem with Talentpoints to Invest
  • Abilitysystem - Abilitys can be created via BPs

V3.5.3 (28.11.2023)

  • Added Spawnsystem Gamemode + DataTable

V3.3.2 (15.11.2023)

  • EOS Multiplayer Session Interface
  • Create/Join/Quit a Session
  • Guide in Wiki http://wiki.teufel-engineering.com (for Questions: [email protected])

V3.1.0 (12.10.2023)

  • Network Replicated
  • Units are chasing with UE-Pathfinding now!


Or check the Documentation:


Choose if your Unit is:

  • Enemy or Friend
  • Range
  • Health
  • Attack Damage
  • MovementSpeed
  • Sight
  • IsFlying
  • .... and more, see the Documentation!

ControllerBase + CameraControllerBase:

CTRL + E -- Rotate Cam Right (works also when Cam is locked to Unit )

CTRL + Q - Rotate Cam Left (works also when Cam is locked to Unit )

CTRL + Left Mouse Click -- Move Cam to Mouse Position

CTRL + W -- Zoom Cam In

CTRL + S -- Zoom Cam Out

CTRL + HOLD SPACE -- Fast Zoom Out to Position

CTRL + SPACE + Left Mouse - Move Cam to Mouse Position

Mouse to Screen Edges -- Move Cam to Mouse Position

Right Click when Unit Selected -- Move Unit

Shift + Right Click when Char. Sel. -- Move Unit through Waypoints

CTRL + G when Unit Selected -- Lock Unit on Character

CTRL + T when Unit Selected -- Switch to Third Person Mode

Press A when Character Selected - toggle Attack

Press A + Left Click when Character Selected - Move to Position and Attack

Press A + Left Click on Enemy - Focus this Enemy

HOLD TAB -- Show Control-Widget

When Character is Selected:

A - Set Unit into Detected Mode

A + LeftClick - Move to Position and Attack everything in your way

If RTSUnitTemplate is installed, the Classes can be used as Parent Class in Blueprint, so all functions from this Class are available in Blueprint. Just use one of the Following Classes as Parent Class and or just choose them in your GameMode Blueprint. Category = RTSUnitTemplate / TopDownRTSCamLib

ALL 3D-Models, Animations and Sounds are changeable via Blueprint.

3D-Models and Animations are Epic-Games Content

Technical Details

Features: (C++ ParentClasses)

  • CameraBase
  • UnitBase
  • UnitControllerBase
  • ControllerBase
  • CameraControllerBase
  • AI-Controller for Meele/Range/Healer/Worker
  • HUDBase
  • PathProviderHUD
  • DijkstraCenter
  • NoPathfindingArea
  • UnitBaseHealthBar
  • Projectile
  • SelectedIcon
  • Waypoint

Code Modules: (Please include a full list of each Plugin module and their module type (Runtime, Editor etc.))

  • RTSUnitTemplate [Runtime]
  • Core, CoreUObject, Engine, InputCore
  • HeadMountedDisplay, NavigationSystem
  • AIModule
  • UMG

Number of Blueprints: 24+ (Most times Based on C++ Class, used for Example)

Number of C++ Classes: 10

Network Replicated: Yess

Supported Development Platforms: Tested in Windows

Supported Target Build Platforms: Tested in Windows

Documentation: http://wiki.teufel-engineering.com/

Example Project: https://www.youtube.com/watch?v=ESS5PYtr9mU

Open Source: https://github.com/SilvanTeufel/RTSUnitTemplate