# Creating destroyed vehicle entities for map entourage

{% hint style="info" %}
Models from the \_x and \_xx folders with assets of destroyed models of vehicles are not intended to be placed on maps as an entourage elements.&#x20;

These models are empty technical models that the game engine replaces the original objects with when damage is dealt to them.\
The engine applies necessary tags, volume properties, spawn additional models, and special effects to these models to create realistic visuals and physical interactions.
{% endhint %}

Below is the procedure for creating entourage models of destroyed objects.

## **Creating a destroyed entity**

1. Launch the Editor and create a new test map
2. Open the Mission Editor \[F3].
3. Place the necessary entity on the map.
4. Damage or destroy the placed entity using one of the following ways:
   * **By firing from other units in Simulation Mode:**

     Set up units to attack the target entity.

<figure><img src="/files/dsgnoa0gGG66AXMQ3mcP" alt=""><figcaption><p><strong>Destroying vehicle by firing from other units</strong></p></figcaption></figure>

* **By spawning a service explosion entity:**\
  Spawn an explosion entity from the `service/damage` folder under or near the target entity

<figure><img src="/files/zHaL6v7V5UyEN2DMNhPF" alt=""><figcaption><p><strong>Spawning a service explosion entity</strong></p></figcaption></figure>

* **Using the G Hotkey:**\
  Spawn an aerial bomb at the cursor position by pressing the `G` key.
* **Using the Console Command `g_component`:**\
  Apply damage or destroy the objects through the console.

<figure><img src="/files/I7M8IHKufajYAoSetuPQ" alt=""><figcaption><p>Use the console to execute the command to destroy the vehicle's body</p></figcaption></figure>

## **Transferring the destroyed entity to the target map or mission**

1. Select the destroyed entity
2. Copy the selected entity to the clipboard (press `Ctrl+C)`
3. Load the map or mission where you want to place the destroyed entity
4. Paste the clipboard contents onto the map (press `Ctrl+V)`

## **Configuring the destroyed entity**

1. Fine-tune the position, tilt, rotation, alignment with the surface, and other properties
2. Add the `destroyed` tag to the vehicle body
   * Select the destroyed entity
   * Open the **Tags of selection** window with `Ctrl+T`.
   * In the opened window, enter the tag name `destroyed` and click the Add button.

{% hint style="info" %}
The `destroyed` tag removes non-relevant gameplay properties from the entity, such as minimap display.
{% endhint %}

<figure><img src="/files/ey3iSwHTt14ZcqgZ4ZK3" alt=""><figcaption><p>Adding tags to the destroyed entity</p></figcaption></figure>

3. Add the `em_notouch` tag:

* Select all separate parts of the destroyed entity (body, turret) with `Shift` held down.
* Open the **Tags of selection** window with `Ctrl+T`.
* In the opened window, enter the tag `em_notouch` and click the Add button

{% hint style="info" %}
The `em_notouch` tag ensures the entity is excluded from the scene debris cleaning system (`entity_manager`).
{% endhint %}

<figure><img src="/files/4ABasmsOqef5i6H6d5qP" alt=""><figcaption><p>Ensure the body has both <code>destroyed</code> and <code>em_notouch</code> tags, while the turret only has the <code>em_notouch</code> tag</p></figcaption></figure>

4. **Save the Map**\
   Save your changes to the map to ensure all modifications are retained.


---

# Agent Instructions: 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:

```
GET https://docs.bestway.com.ua/editor/map-editor/specifics-of-map-editing/creating-destroyed-vehicle-entities-for-map-entourage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
