# Getting started Squadcraft gives you enemies that fight like a squad: they find cover on their own, lean out and fire in turns, pin you down, send one round the side and flush you out with a grenade. Everything runs on the server and replicates, so it works the same in single player, listen server and dedicated server. This page gets one squad fighting in an empty level in about ten minutes. ## 1. Enable the plugin Edit > Plugins, search for Squadcraft, tick it and restart. It turns on StateTree, GameplayStateTree and GameplayAbilities too, which it needs. All three are part of the engine. ## 2. A level with a navmesh The AI walks on the navmesh and finds cover on it, so the level needs a **Nav Mesh Bounds Volume** over the floor the enemies use. Press P in the viewport to see the navmesh in green. Cover is found when play starts, over every Nav Mesh Bounds Volume, so there is nothing to place by hand. Walls, crates, cars, anything with collision that blocks the Visibility channel counts. If your level builds its navmesh at runtime (Project Settings > Navigation Mesh > Runtime Generation = Dynamic), Squadcraft waits for the first build before it looks for cover. ## 3. An enemy Any Character works. Make a Blueprint of your enemy character (or use the engine mannequin) and in its Class Defaults set: - **AI Controller Class**: `SQAIController` (or a Blueprint child of it). - **Auto Possess AI**: Placed in World or Spawned. Place four of them close together. Select each one and, in the details panel under Actor > Tags, add the tag `Squad:Alpha`. Enemies with the same squad tag fight together. Optional tags on the same list: `Role:Flanker` (or Leader, Assault, Suppressor) and `Team:2`. The same settings are on the controller (Squad Name, Preferred Role, Team Number) if you prefer a Blueprint child of `SQAIController` per enemy type. The pawn's tags win. ## 4. Play Press Play and walk into their view. You should see them: - notice you (Suspicious first, then Alert; the one who sees you tells the rest); - run to cover facing you; - lean out, wait a moment, fire a burst, duck back; - one of them suppress where you are, one go round your side; - throw a grenade if you hide behind something for a few seconds. They deal standard engine damage, so if your character already has health that listens to **Event AnyDamage**, it works as it is. If not, add a `SQHealthComponent` to your character for a quick test. ## 5. See what they think Press **'** (apostrophe) in play to open the Gameplay Debugger, look at an enemy, and pick the **Squadcraft** category. It shows its role, alert state, what it is doing, the enemies it remembers, its cover and its attack token. See [Debugging](4-debugging.html). ## 6. The two demo maps `/Squadcraft/Demo/Maps/L_SquadShowcase` is the tour: eleven stations, one thing each (cover found on its own, flanking, suppression both ways, a grenade on a hider, breach and clear, the three presets side by side with their numbers, enemy types and a boss, downed and revived, morale and surrender, breakable cover, 64 AIs). Arrow keys go from one to the next, R starts one over, H hides the overlay. `/Squadcraft/Demo/Maps/L_SquadDemo` is the battle: four blue riflemen against six red with a sniper and a hybrid, and Enter to play as the blue squad's leader. M goes from one map to the other. Next: [Using your own character](2-your-own-character.html).