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

◆ RemoveAllAttachedChildrenByTypename()

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

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

1970 {
1971 if (listOfTypenames.Count() > 0)
1972 {
1973 Object child = Object.Cast(parent.GetChildren());
1974 while (child)
1975 {
1976 Object childToRemove = child;
1977 child = Object.Cast(child.GetSibling());
1978
1979 if (childToRemove.IsAnyInherited(listOfTypenames))
1980 {
1981 vector pos = parent.GetPosition();
1982 parent.RemoveChild(childToRemove, false);
1983
1984 vector m4[4];
1986 m4[3] = pos;
1987 childToRemove.SetTransform(m4);
1988 childToRemove.PlaceOnSurface();
1989 }
1990 }
1991 }
1992 }
Определения EnMath3D.c:28
Определения ObjectTyped.c:2
Определения EnConvert.c:119
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
Определения EnMath3D.c:256

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