> For the complete documentation index, see [llms.txt](https://cs2ctf.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cs2ctf.gitbook.io/docs/getting-started/ingame-editor.md).

# Ingame Editor

The ingame editor allows server owners and players to add support for the CTF game mode without having access to the map. This happens through manually placing the spawn points and bases. The mod will then determine if a map supports CTF by default or not. If not, it will automatically load the editor configuration.

### Enable/Disable the editor

To enable the editor, simply use the chat command `!ctf_editor`. To disable it, use the same command again.

{% hint style="info" %}
Enabling the editor will globally enable it for everybody on the server so people can collaborate on placing game elements!
{% endhint %}

### Adding Bases

To add a base (the location where the flag of the selected team will be and where players have to return the flag to), use `!ctf_addtbase` or `!ctf_addctbase` respectively for each team.

Make sure to stand in the right direction as it will copy the current view angles from the player.

If you want to move the base, simply use the same command. This will remove the existing base and add a new one.

Having multiple bases for a team is not supported.

### Adding Spawns

TODO

### Commands

To see all editor related commands, check out the [command overview](/docs/getting-started/commands.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cs2ctf.gitbook.io/docs/getting-started/ingame-editor.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
