> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-advanced-gang/configuration/founding-and-camp.md).

# Founding and the camp

Configure founding in CAS Advanced Gang System: the founding fee, camp spacing and bounds, the placing camera and the starting camp.

{% code title="config.lua" %}

```lua
Config.FoundingCost     = 500.0
Config.MinCampSpacing   = 300.0
Config.DefaultInfluence = 220.0
Config.CampBounds       = 45.0
Config.FoundBounds      = 20.0
Config.GangNameMax      = 24
Config.GangTagMax       = 8
Config.FoundingOrder    = { 'leader_tent', 'ledger_table', 'campfire' }
```

{% endcode %}

| Setting                     | Meaning                                                                                                                                                                               |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `FoundingCost`              | Taken from the founder's money when the camp is claimed. `0` = free. Paid back if the database refuses the gang.                                                                      |
| `MinCampSpacing`            | Least distance between two camps' centres, in metres.                                                                                                                                 |
| `DefaultInfluence`          | The camp's claim radius in metres, used by [territory](/script-documentation/cas-advanced-gang/configuration/territory.md) and shown on the Camp tab.                                 |
| `CampBounds`                | How far from the leader's tent a structure may stand. Also what "in camp" means for the stash, moving structures and guided runs.                                                     |
| `FoundBounds`               | How far from the founder the leader's tent may be pitched.                                                                                                                            |
| `GangNameMax`, `GangTagMax` | Longest name and tag. The shortest are fixed at 3 and 2.                                                                                                                              |
| `FoundingOrder`             | The structures a new camp needs, in order. **The first is the anchor**: the camp is measured from it and it can't be moved or taken down. Every id must exist in `Config.Structures`. |

## Placing camera

```lua
Config.PlacementCamera = {
  height = 14.0,  -- metres above the structure
  back   = 10.0,  -- metres behind it
  fov    = 45.0,  -- lens
  step   = 0.10,  -- metres moved per frame while an arrow key is held
}
```

Raise `height` and `back` for a wider view of big camps. Lower `step` for finer placing.
