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