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

◆ DeleteAttachedChildrenByTypename()

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

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

1995 {
1996 if (listOfTypenames.Count() > 0)
1997 {
1998 Object child = Object.Cast(parent.GetChildren());
1999 while (child)
2000 {
2001 Object childToRemove = child;
2002 child = Object.Cast(child.GetSibling());
2003
2004 if (childToRemove.IsAnyInherited(listOfTypenames))
2005 {
2006 parent.RemoveChild(childToRemove, false);
2007 childToRemove.Delete();
2008 }
2009 }
2010 }
2011 }
Определения ObjectTyped.c:2