3 override void CreateActionComponent()
49 Object targetParent = action_data.m_Target.GetParent();
51 return tent.CanBePacked();
62 if ( super.SetupAction(player, target, item, action_data, extra_data ))
66 poActionData.m_AlreadyPlaced =
false;
75 Object targetObject = target.GetObject();
76 Object targetParent = target.GetParent();
79 if (inventory_tent && inventory_tent.GetHierarchyRootPlayer())
84 if ( player && targetObject && targetParent )
87 if ( tent.CanBePacked() )
90 targetObject.GetActionComponentNameList(target.GetComponentIndex(), selections);
92 for (
int s = 0; s < selections.Count(); s++ )
94 if ( selections[s] ==
"pack" )
106 super.Start(action_data);
108 if ( action_data.m_Player ) action_data.m_Player.TryHideItemInHands(
true);
113 Object targetParent = action_data.m_Target.GetParent();
115 tent.SetIsBeingPacked(
true);
120 Object targetParent = action_data.m_Target.GetParent();
122 tent.SetIsBeingPacked(
false);
123 if ( action_data.m_Player ) action_data.m_Player.TryHideItemInHands(
false);
129 Object targetParent = action_data.m_Target.GetParent();
131 if (tent.CanBePacked())
134 tent.SetPosition( action_data.m_Player.GetPosition() );
135 tent.SetOrientation( action_data.m_Player.GetOrientation() );
136 tent.PlaceOnSurface();
142 return " packed " + action_data.m_Target.GetParent().GetDisplayName() +
" with Hands ";