51 return tent.CanBePacked();
62 if ( super.SetupAction(player, target, item, action_data, extra_data ))
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);
115 tent.SetIsBeingPacked(
true);
122 tent.SetIsBeingPacked(
false);
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 ";
ActionData CreateActionData()
void CreateConditionComponents()
protected float m_SpecialtyWeight
bool IsUsingProxies()
not using plane object - it's using multiple proxies
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
string GetAdminLogMessage(ActionData action_data)
bool HasProgress()
For UI: hiding of progress bar.
protected bool m_FullBody
protected int m_StanceMask
ActionPackTentCB ActionContinuousBaseCB ActionPackTent()
class ActionTargets ActionTarget
void Start()
Plays all elements this effects consists of.
protected ActionData m_ActionData
bool HasAlternativeInterrupt()
protected void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
ref ActionTarget m_Target
override void CreateActionComponent()
override bool ActionConditionContinue(ActionData action_data)
protected void OnExecute(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
const float DEFAULT_DEPLOY
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayerConstants
defined in C++