DayZ 1.30
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 строка 1431

1432 {
1433 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
1434
1435 if ( g_Game.ConfigIsExisting(cfg_path) )
1436 {
1437 int selections = g_Game.ConfigGetChildrenCount(cfg_path);
1438
1439 for (int i = 0; i < selections; i++)
1440 {
1441 string selection_name;
1442 g_Game.ConfigGetChildName(cfg_path, i, selection_name);
1443 HideSelection(selection_name);
1444 }
1445 }
1446 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:4074
void HideSelection(string selection_name)
Hides selection of the given name. Must be configed in config.cpp and models.cfg.

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