4596 {
4597
4598 EntityAI parent = GetHierarchyParent();
4599 if (!parent)
4600 {
4601 hasParent = false;
4602 hasRootAsPlayer = false;
4603 }
4604 else
4605 {
4606 hasParent = true;
4607 hasRootAsPlayer = (GetHierarchyRootPlayer() != null);
4608 refParentIB =
ItemBase.Cast(parent);
4609 }
4610 }