# Выбор анимаций перемещения актера human

Логика выбора анимаций ходьбы и бега для актера human хранится в `\properties\animation_selector\`**`human_walk_selector.set`**

Работает по принципу обычного селектора. \
Обрабатывает запросы с именами, соотвествующими movement mode: `slow`, `normal`, `fast`, `walk`, `bow`, `assault`, `spot`, `sneak`.

## Конфигурация Селектора анимаций перемещения

Для каждого из запросов с помощью условных конструкций блока `if` выбираются соответствующие анимации, которые прописываются в блоке `walk`.

Можно использовать выбор анимаций по FSM-счетчику `walk`.

Используется метод указания конкретных анимаций: общей для всего тела (`anm_single`), либо отдельные анимации для верха (`anm_up`) и низа туловища (`anm_down`).

> **Структура Селектора анимаций передвижения**
>
> ```
> {request_name_movement_mode
>     {if <condition>
>         {walk wind [single "<anm_single>" | "<anm_up>" "<anm_down>"]}
>     }
>     [...]
> }
> [...]
> ```

Параметр `wind` является опциональным, указывает на необходимость перемотки анимации.

<details>

<summary>Пример указания цельной анимации в Селекторе анимаций передвижения</summary>

```
{if human_stuff holding "2hands"
    {walk single "walk_2hand"}
}
```

</details>

<details>

<summary>Пример выбора анимаций передвижения по FSM-счетчику <code>walk</code></summary>

<pre><code>{if human_stuff holding "rifle"
<strong>	{switch_by_counter "walk"
</strong>		{pick 1
			"run_rifle_up" "run_rifle_down"
		}
		{pick 2
			single "run_rifle"
		}
	}
}	

</code></pre>

</details>


---

# 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://bestway-1.gitbook.io/documentation/gem-rts-v1-ru/animacii/anymatsyonnaia_systema_yunytov/animation_selector/vybor-animacii-khodby-i-bega.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.
