4524 {
4525
4526 EntityAI parent = GetHierarchyParent();
4527 if (!parent)
4528 {
4529 hasParent = false;
4530 hasRootAsPlayer = false;
4531 }
4532 else
4533 {
4534 hasParent = true;
4535 hasRootAsPlayer = (GetHierarchyRootPlayer() != null);
4536 refParentIB =
ItemBase.Cast(parent);
4537 }
4538 }