DayZ 1.27
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'.

См. определение в файле EntityAI.c строка 1383

1384 {
1385 string cfg_path = "cfgVehicles " + GetType() + " AnimationSources";
1386
1387 if ( GetGame().ConfigIsExisting(cfg_path) )
1388 {
1389 int selections = GetGame().ConfigGetChildrenCount(cfg_path);
1390
1391 for (int i = 0; i < selections; i++)
1392 {
1393 string selection_name;
1394 GetGame().ConfigGetChildName(cfg_path, i, selection_name);
1395 HideSelection(selection_name);
1396 }
1397 }
1398 }
eBleedingSourceType GetType()
Определения BleedingSource.c:63
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
void HideSelection(string selection_name)
Hides selection of the given name. Must be configed in config.cpp and models.cfg.
Определения EntityAI.c:3307
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), GetGame(), GetType() и HideSelection().