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

◆ DeleteAttachedChildrenByTypename()

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

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

1862 {
1863 if (listOfTypenames.Count() > 0)
1864 {
1865 Object child = Object.Cast(parent.GetChildren());
1866 while (child)
1867 {
1868 Object childToRemove = child;
1869 child = Object.Cast(child.GetSibling());
1870
1871 if (childToRemove.IsAnyInherited(listOfTypenames))
1872 {
1873 parent.RemoveChild(childToRemove, false);
1874 childToRemove.Delete();
1875 }
1876 }
1877 }
1878 }
Определения ObjectTyped.c:2