Military Garrison

Puts a hand-picked garrison exactly where you put the module, instead of letting ALiVE choose the spot.

On this page

Overview

What Military Garrison does

Military Garrison is an Eden module a mission maker drops at an exact position on the map. It creates a manned military objective right there, rather than letting ALiVE's automatic placement pick a location.

It spawns either an infantry group or a single vehicle (crewed or empty) at the module's position. A vehicle faces the direction the module is rotated to.

Reach for it when the story of the mission needs:

  • a garrison at a specific spot (add CBA AI Building Positions if you want men inside a building)
  • a checkpoint on a specific road
  • a vehicle parked in a specific yard.

Everything else in the area still gets simulated the normal ALiVE way.

The mission maker chooses the faction and an objective size (how far the garrison looks for CBA AI Building Positions you've placed). Optionally, they set a specific infantry group classname or vehicle classname. Leaving those blank lets ALiVE pick a random appropriate group for the chosen faction instead.

A behaviour setting controls how alert the placed infantry are on spawn. An on-spawn script hook runs your own code the moment the placed units appear. With a Vehicle Classname set it runs for the crew, so an uncrewed vehicle never runs it.

Where you place this module matters. Units are placed where you drop this module, and a vehicle faces the way you point it; infantry don't take their facing from it. It takes the module's height too, so you can set it on a roof or on a bridge over land and the garrison arrives there rather than on the ground underneath. Not over the sea: on a pier or a ship's deck an infantry group or an empty vehicle never appears.

Garrison

What a Military Garrison puts where you drop it

Military Garrison places one infantry group or one vehicle exactly where you drop the module, and it stays there. Drawn to scale, with Objective size raised from its default of 50 to 120 so the two circles are easy to tell apart.

An infantry group. With Vehicle Classname empty you get one group: the one named in Infantry Group Classname, or a random infantry group of the faction.

As it appears, its men are put straight into place, one to a post: first the static weapons within 50 m of the module, nearest first, then the armed cars (armed trucks and wheeled APCs count, even a player's parked one), until the men run out, whatever Objective size says. A weapon that's wrecked, locked or already has a gunner still uses up a man.

Then the CBA positions. The men left take the CBA AI Building Positions within Objective size, nearest first, one each, facing the way each position points. Anyone still left gets no post, and neither does a one-man group. The positions houses already have are never used, and the module's rotation doesn't turn the infantry.

A vehicle instead. Fill in Vehicle Classname and you get that vehicle, on the module's exact spot and facing the way the module is rotated. It isn't moved onto a road or turned to one, and nothing checks the spot is clear, so leave it room. It comes with the crew its own config names, on the chosen faction's side. Spawn Vehicle Uncrewed at Yes leaves it empty, and it isn't locked.

It stays put. No AI Commander takes the spot as an objective, and nothing can move the garrison: the infantry never take a move order, and a vehicle and its crew are held back from every commander. The only module you can sync to it is a Faction Compiler, which sets the faction it places.

Only there while a player is near. Like everything ALiVE places, the garrison only exists in the world while a player is within spawn range. When a persistent mission loads its save, the garrison comes back from it and the module doesn't place another.

Capabilities

What it handles

Fixed position

Placed exactly where you put it

Units or a vehicle spawn at the module's own position, and a vehicle faces the way the module points, giving mission makers precise control over garrisons instead of relying on automatic placement.

Infantry or vehicle

Infantry group or a single vehicle

Set a vehicle classname to spawn a vehicle (with or without a crew); leave it blank and the module spawns an infantry group instead, either one the mission maker names directly or a random one for the chosen faction.

Building position garrisoning

Mans the positions you place

When you've placed CBA AI Building Positions within Objective size (along a trench line, say), the men left after the guns are manned go to them and face the way each one points. They appear on the positions at once when no player is close, and walk there when a player is within about 500 metres. The positions houses already have are never used.

Faction and behaviour control

Faction and behaviour controls

Mission makers choose the faction from the standard ALiVE faction list (or via a synced Faction Compiler module) and set the AI's starting behaviour (aware, combat, stealth, safe or careless).

Spawn hook

Custom on-spawn script hook

On unit spawn (SQF) runs your own code the moment the placed units appear, and Run once per group decides whether it fires on the group's first spawn only or every time they spawn. With a Vehicle Classname set it runs for the vehicle's crew, so it only fires when Spawn Vehicle Uncrewed is No.

How to use it

Getting started

  1. Place the Military Garrison module at the exact spotDrop the module in Eden right on the spot you want held, such as a yard or a road. For a vehicle, rotate the module to set the way it faces; the rotation doesn't turn infantry.
  2. Set the factionPick a faction from Force Faction. To use a faction of your own, sync the module to a Custom Faction Compiler module instead; it overrides the Force Faction choice at mission start.
  3. Choose infantry or a vehicleLeave Infantry Group Classname blank for a random infantry group of the chosen faction, or fill it in to name a specific group. To spawn a vehicle instead, set Vehicle Classname and use Spawn Vehicle Uncrewed to decide if it spawns crewed (No, the default) or empty (Yes).
  4. Set behaviour and sizeSet Infantry Group AI Behaviour (Aware, Combat, Stealth, Safe or Careless) for how alert the group starts. Objective size is how far from the module the men left after the guns are manned look for CBA AI Building Positions you've placed; they never use the positions a house already has.
  5. Play the mission and check the placementAs a player, approach the module's location and confirm the group or vehicle appears there, a vehicle facing the way the module points. Infantry should man the static weapons and armed cars within 50 metres first, then stand on the CBA AI Building Positions you placed within Objective size.
  6. Turn on Debug if something looks wrongSet Enable Debug to Yes and watch the RPT log for errors while testing placement, group selection, or the on-spawn script hook.

Settings

Every setting, and what it does

These settings place a single garrison at the module's position: either one infantry group from the faction you choose, or one vehicle of any class on that faction's side. No AI commander takes the spot as an objective, and no player task points at it.

Quick setups

A crewed vehicle holding a crossroads

  • Vehicle Classname: the vehicle's class name
  • Spawn Vehicle Uncrewed: No

With a vehicle class filled in, the module spawns that vehicle with an AI crew instead of an infantry group.

A parked, empty vehicle for players to find

  • Vehicle Classname: the vehicle's class name
  • Spawn Vehicle Uncrewed: Yes

The vehicle spawns with nobody in it, so it works as a prize or a set dressing piece.

Troops manning positions across a wider compound

  • Objective size: 150

The size is how far the garrison searches for CBA AI Building Positions. Static weapons and armed cars are always taken from within 50 metres, and the troops don't move into houses, so a bigger size only helps if you've placed positions for them.

General

4 settings
Enable DebugDefault: No

Choices: Yes / No

Writes this module's own diagnostic lines to the server log so you can see what it placed and where.

Force FactionDefault: NATO (BLU_F)

The faction the garrison is drawn from. If a Custom Faction Compiler module is synced to this module, its faction is used instead of the one picked here.

AffectsThe Custom Faction Compiler is the only module you can sync to this one.

A number stored with the objective the module registers. No AI commander takes a Military Garrison objective, so it makes no difference in play.

Objective sizeDefault: 50

A radius in metres: how far from the module the garrison looks for CBA AI Building Positions to man. It doesn't send troops into houses.

The group takes static weapons and armed cars within 50 metres whatever this says. Any men left over go to CBA AI Building Positions inside this radius. They're placed at once if no player is close, and walk there if one is within about 500 metres. If you haven't placed any, the rest get no post.

TrySet 150 when your CBA AI Building Positions (trench slots, sandbag lines, rooftop posts) are spread across a compound rather than round one building.

Spawned Units

5 settings
Infantry Group ClassnameDefault: (empty)

The group to spawn, as a config class name. Leave it empty and the module picks a random infantry group from the faction. Name an infantry-only group: if its config includes a vehicle or static weapon, that comes too, 20 m or more away in a random direction, and the group then mans nothing.

AffectsIgnored completely when Vehicle Classname has anything in it.

Choices: Aware / Combat / Stealth / Safe / Careless

The starting behaviour of the infantry group: how alert they are, how they move and how they react to contact.

AffectsOnly reaches infantry; a vehicle crew doesn't get this setting.

Vehicle ClassnameDefault: (empty)

The vehicle to spawn, as a config class name. Fill it in and you get this vehicle instead of an infantry group; leave it empty for infantry.

Choices: Yes / No

Yes spawns the vehicle empty. No spawns it with the crew its own config names, on the chosen faction's side, so pick one of that faction's vehicles if the crew should match.

AffectsOnly matters when Vehicle Classname is filled in.

Choices: Yes / No

No longer shown in the editor, as it never made a difference: the AI Commander leaves a Military Garrison alone, so no player task reaches its objective. A mission that saved a choice still loads.

On Spawn Hook

2 settings
On unit spawn (SQF)Default: (empty)

Your own SQF code, run on the server each time a unit from this module spawns. For a crewed vehicle it runs for the crew, not the vehicle itself. An uncrewed vehicle has nobody to run it for, so it never fires.

AffectsRun once per group decides whether it fires again each time the group comes back from being virtual, or only on its first spawn.

Run once per groupDefault: Yes

Choices: Yes / No

Yes runs your code on the group's first spawn only: when the group comes back from being virtual it isn't run again. No runs it every time the group spawns, which keeps anything it adds to the soldiers, such as event handlers or a loadout, in place, because the soldiers are made afresh each time.


ALiVE.OS · ALiVE · documentation, 2026.