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

◆ DeleteAttachedChildrenByTypename()

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

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

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