# Squadcraft Tactical shooter AI for Unreal Engine 5.6, 5.7 and 5.8, on StateTree and the Gameplay Ability System, replicated for multiplayer. Enemies find cover on their own, lean out and fire in turns, pin you down with suppressing fire, send one round your side, move up when you hide and flush you out with a grenade. They get pinned down too: shots that pass close make them fire blind and fall back. They aim fair (the first shot misses), run dry and reload in cover, say what they do ("flanking!", "reloading!") and run from grenades. A squad shares what it sees and calls for help. A soldier who goes down gets dragged to cover and revived by a squad mate; one whose nerve breaks runs, and with an enemy close puts its hands up. Cover can be shot to pieces, and the AIs hiding behind it look for more. Everything is open to Blueprint: ready-made enemy, companion and player Blueprints to start from, hooks to change who is an enemy, when to fire, which cover to take and how much a hit hurts, and events for every order, shot and target spotted. Difficulty is a data asset: Recruit, Soldier and Veteran come ready. The same AI can fight on the player's side and take orders. Spawners with waves, patrol routes, doors and vaulting low cover are in, and every task and condition works in a Behavior Tree too, with an EQS generator of cover spots. All of it runs on the server, has been tested on a dedicated server with two clients, and costs about 0.1 ms per AI. ## Try the demo first 1. Enable the **Squadcraft** plugin and restart the editor. 2. In the Content Browser settings, turn on **Show Plugin Content** (and **Show Engine Content** if you installed the plugin into the engine from Fab). 3. Open **Squadcraft Content / Demo / Maps / L_SquadShowcase** and press Play. The showcase is a tour of eleven stations, one thing each: cover found on its own, flanking, suppression both ways, a grenade on a hider, breach and clear, Recruit, Soldier and Veteran side by side with their numbers, a sniper, a rusher, a hybrid and a boss, downed and revived, morale and surrender, breakable cover, and 64 AIs at once. The **arrow keys** go from one station to the next, **R** starts one over, and over each soldier the overlay says what it is, its role, what it is doing in words, and its health, suppression and morale (**H** hides it). **M** goes to the battle map. **L_SquadDemo** is the battle: four blue riflemen against six red (a sniper and a hybrid among them) fight across a field of cover while you watch with a free camera (WASD and mouse, Q and E for down and up). When a team is out it comes back after 4 seconds. Press **'** (apostrophe), look at a soldier and pick the **Squadcraft** category to see what it thinks. Press **Enter** to play as the blue squad's leader. Your shots suppress the red soldiers like theirs do, and the blue AIs take your orders: hold **Q** for the squad menu (point with the mouse, let go) or use its keys at once: **1** follow me, **2** hold here, **3** move there, **4** attack, **5** suppress there, **6** grenade there, **7** cover there, **8** regroup, **9** watch there, **Z / X** flank left or right, **B** breach the door you aim at, **T** switch team (orders to the red half, the blue half or everyone); the menu also sets the fire rule. **C** takes cover where you look, **F1 / F2 / F3** switch the red team between Recruit, Soldier and Veteran, and **Tab** goes back to watching. The demo's player controller (`SQDemoPlayerController`) is a working example of every call your own game makes. ## Then The docs walk you through it: 1. [Getting started](1-getting-started.html): one squad in your own level in ten minutes. 2. [Using your own character](2-your-own-character.html): your player, your health, your enemy meshes. 3. [Squads and tactics](3-squads-and-tactics.html): roles, attack tokens, awareness, the default behavior, cover. 4. [Debugging](4-debugging.html): the Gameplay Debugger page, the Visual Logger and the console commands. 5. [Profiles and difficulty](5-profiles-and-difficulty.html): the presets, fair aim, suppression, ammo, callouts. 6. [Player squads, spawners and doors](6-player-squads-spawners-doors.html): orders, waves, patrol routes, doors, vaulting, grenades as dangers, Mover, performance. 7. [Behavior Trees and EQS](7-behavior-trees-and-eqs.html): the same tasks and conditions as Behavior Tree nodes, and an EQS generator of cover spots. 8. [Blueprints](8-blueprints.html): the ready-made Blueprints, every call, the hooks that change a decision, the events, your own commands and abilities. No C++ needed. 9. [Downed, morale and breakable cover](9-downed-morale-breakable-cover.html): revive and drag, morale, fleeing and surrender, cover that breaks. In the editor, the **Squadcraft** button on the toolbar previews the cover of the open level without playing, and opens the squad panel, a live table of every AI while the game plays ([Debugging](4-debugging.html)). ## What is in the plugin | Module | What it is | |---|---| | Squadcraft | Everything you use: the AI controller, cover, awareness, squads, the combat abilities, the StateTree tasks and conditions, the default StateTree `ST_Squadcraft`, the profile presets, the spawner and the patrol route | | SquadcraftEditor | Editor only: the cover preview and the squad panel | | SquadcraftExample | Only for the demo: the soldier, its animation without an Anim Blueprint, the demo player controller and HUD with its overlay, the demo game mode, the showcase stations, the crates and cover markers, the demo door | The demo's mannequin and animations are Epic Games content from the Game Animation Sample, included as demo content (see ThirdPartyNotices.txt). Squadcraft does not need them. Support: contato@tessaroapps.com