См. определение в файле ItemBase.c строка 4612
4613 {
4614
4615 EntityAI parent = GetHierarchyParent();
4616 if (!parent)
4617 {
4618 hasParent = false;
4619 hasRootAsPlayer = false;
4620 }
4621 else
4622 {
4623 hasParent = true;
4624 hasRootAsPlayer = (GetHierarchyRootPlayer() != null);
4625 refParentIB =
ItemBase.Cast(parent);
4626 }
4627 }
Используется в ProcessVariables().