597 {
598
599
601 {
603
604 if (parent_EAI)
605 {
606 GameInventory GI = parent_EAI.GetInventory();
607
608 if (GI)
609 {
611
612 if (!is_in_cargo)
613 {
614 EntityAI parent2 = parent_EAI.GetHierarchyParent();
615
616 if (parent2 && parent2.GetInventory())
617 {
618 is_in_cargo = parent2.GetInventory().IsInCargo();
619 }
620 }
621
622 if ( is_in_cargo )
623 {
625 }
626 else
627 {
629 }
630 }
631 }
632 }
633 }
void SetEnabled()
prevents insider adding in the wrong position, HOTFIX
bool IsInCargo()
Returns true if this Inventory owner is in cargo of something.