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

◆ RemoveAllAttachedChildrenByTypename()

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

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

1837 {
1838 if (listOfTypenames.Count() > 0)
1839 {
1840 Object child = Object.Cast(parent.GetChildren());
1841 while (child)
1842 {
1843 Object childToRemove = child;
1844 child = Object.Cast(child.GetSibling());
1845
1846 if (childToRemove.IsAnyInherited(listOfTypenames))
1847 {
1848 vector pos = parent.GetPosition();
1849 parent.RemoveChild(childToRemove, false);
1850
1851 vector m4[4];
1853 m4[3] = pos;
1854 childToRemove.SetTransform(m4);
1855 childToRemove.PlaceOnSurface();
1856 }
1857 }
1858 }
1859 }
Определения EnMath3D.c:28
Определения ObjectTyped.c:2
Определения EnConvert.c:119
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
Определения EnMath3D.c:256

Перекрестные ссылки Math3D::MatrixIdentity4().