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

◆ DeleteAttachedChildrenByTypename()

static void DeleteAttachedChildrenByTypename ( notnull EntityAI parent,
array< typename > listOfTypenames )
staticprotected

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

1849 {
1850 if (listOfTypenames.Count() > 0)
1851 {
1852 Object child = Object.Cast(parent.GetChildren());
1853 while (child)
1854 {
1855 Object childToRemove = child;
1856 child = Object.Cast(child.GetSibling());
1857
1858 if (childToRemove.IsAnyInherited(listOfTypenames))
1859 {
1860 parent.RemoveChild(childToRemove, false);
1861 childToRemove.Delete();
1862 }
1863 }
1864 }
1865 }
Определения ObjectTyped.c:2