4612 {
4613
4614 EntityAI parent = GetHierarchyParent();
4615 if (!parent)
4616 {
4617 hasParent = false;
4618 hasRootAsPlayer = false;
4619 }
4620 else
4621 {
4622 hasParent = true;
4623 hasRootAsPlayer = (GetHierarchyRootPlayer() != null);
4624 refParentIB =
ItemBase.Cast(parent);
4625 }
4626 }