Summary
Clears trees (and optionally bushes) around bases in Conflict and Game Master. This keeps bases clearer and more open.
Description
# TT_BaseTreeRemover
> **Important:** This is a script mod. It can only be added to a scenario through the Workbench by attaching the component to the GameMode entity. Simply subscribing to the mod is not enough.
Clears trees (and optionally bushes) around bases in **Conflict** and **Game Master**.
The mod starts shortly after the game begins and removes vegetation within a configurable radius around all relevant bases. This keeps bases clearer and more open.
It only works in Conflict and Game Master and is server-authoritative.
---
## What is this mod for?
You cannot edit official maps or most modded maps.
If you place a capturable base in a forest, trees (and bushes) are often right in the middle of the base and block movement, vehicles, or line of sight.
**TT_BaseTreeRemover** solves this problem.
After a configurable delay it automatically removes trees (and optionally bushes) in a configurable radius around every base.
This way you can place bases in forested areas without having to manually clear vegetation that you cannot edit on the map itself.
---
## Setup in Workbench
### 1. Add the Component
1. Open your Conflict or Game Master scenario in the **World Editor**.
2. Select the **GameMode entity**
(Conflict: usually `GameMode_Campaign` | Game Master: usually `GameMode_Editor`).
3. In the Inspector, click **Add Component** at the bottom.
4. Search for `TT_BaseTreeRemover` and add **TT_BaseTreeRemoverComponent**.
### 2. Configure Attributes
In the Inspector on the component you can adjust the following values:
- **Delay** – Delay after game start (seconds). Recommended: 5–10
- **Radius** – Radius around each base (meters). Recommended: 15–25
- **Clear trees** – Remove trees. Recommended: enabled
- **Also clear bushes** – Also remove bushes / low vegetation. Optional
- **Log deleted count** – Print number of deleted entities to the log. Recommended: on for testing
### 3. Save
Save the scenario (Ctrl+S) or the GameMode prefab if you are using a custom prefab.
---
## Usage on a Server
- Add the mod to the "mods" array in your `server.json`.
- Make sure the scenario has the component attached to the GameMode.
- Restart the server.
After the configured delay, trees around the bases will be removed.
---
## Notes
- The mod only runs in Conflict and Game Master.
- It does not delete players, vehicles, or buildings.
- Deletion is server-authoritative and replicated to all clients.
License
Arma Public License No Derivatives (APL-ND)