Searches object's config for the given animation name. Returns true if it was found, or false if not.
См. определение в файле Object.c строка 422
423 {
424 string cfg_path_vehicles =
"CfgVehicles " +
GetType() +
" ";
425 if (
g_Game.ConfigIsExisting (cfg_path_vehicles) &&
g_Game.ConfigIsExisting (cfg_path_vehicles +
"AnimationSources " + anim_name) )
426 {
427 return true;
428 }
429
430 string cfg_path_weapons =
"CfgWeapons " +
GetType() +
" ";
431 if (
g_Game.ConfigIsExisting (cfg_path_weapons) &&
g_Game.ConfigIsExisting (cfg_path_weapons +
"AnimationSources " + anim_name) )
432 {
433 return true;
434 }
435
436 string cfg_path_magazines =
"CfgMagazines " +
GetType() +
" ";
437 if (
g_Game.ConfigIsExisting (cfg_path_magazines) &&
g_Game.ConfigIsExisting (cfg_path_magazines +
"AnimationSources " + anim_name) )
438 {
439 return true;
440 }
441
442 return false;
443 }
string GetType()
Get config class of object.
Перекрестные ссылки g_Game и GetType().