DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ HideAllSelections()

void Entity::HideAllSelections ( )
inlineprotected

Sets all animation values to 1, making them INVISIBLE if they are configured in models.cfg in such way. These selections must also be defined in the entity's config class in 'AnimationSources'.

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 1403

1404 {
1405 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
1406
1407 if ( g_Game.ConfigIsExisting(cfg_path) )
1408 {
1409 int selections = g_Game.ConfigGetChildrenCount(cfg_path);
1410
1411 for (int i = 0; i < selections; i++)
1412 {
1413 string selection_name;
1414 g_Game.ConfigGetChildName(cfg_path, i, selection_name);
1415 HideSelection(selection_name);
1416 }
1417 }
1418 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:3942
void HideSelection(string selection_name)
Hides selection of the given name. Must be configed in config.cpp and models.cfg.

Перекрестные ссылки g_Game, GetType() и HideSelection().