14 m_SpecialtyWeight = UASoftSkillsWeight.PRECISE_LOW;
18 m_Text =
"#pack_tent";
54 Object targetParent = action_data.m_Target.GetParent();
56 return tent.CanBePacked();
67 if ( super.SetupAction(player, target, item, action_data, extra_data ))
80 Object targetObject = target.GetObject();
81 Object targetParent = target.GetParent();
84 if (inventory_tent && inventory_tent.GetHierarchyRootPlayer())
89 if ( player && targetObject && targetParent )
92 if ( tent.CanBePacked() )
95 targetObject.GetActionComponentNameList(target.GetComponentIndex(), selections);
97 for (
int s = 0; s < selections.Count(); s++ )
99 if ( selections[s] ==
"pack" )
111 super.Start(action_data);
113 if ( action_data.m_Player ) action_data.m_Player.TryHideItemInHands(
true);
118 Object targetParent = action_data.m_Target.GetParent();
120 tent.SetIsBeingPacked(
true);
125 Object targetParent = action_data.m_Target.GetParent();
127 tent.SetIsBeingPacked(
false);
128 if ( action_data.m_Player ) action_data.m_Player.TryHideItemInHands(
false);
134 Object targetParent = action_data.m_Target.GetParent();
136 if (tent.CanBePacked())
142 return " packed " + action_data.m_Target.GetParent().GetDisplayName() +
" with Hands ";
ActionPackTentCB ActionContinuousBaseCB ActionPackTent()
class ActionTargets ActionTarget
void Start()
Plays all elements this effects consists of.
ActionData CreateActionData()
bool HasProgress()
For UI: hiding of progress bar.
string GetAdminLogMessage(ActionData action_data)
bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
bool IsUsingProxies()
not using plane object - it's using multiple proxies
void CreateConditionComponents()
bool HasAlternativeInterrupt()
void OnFinishProgressServer(ActionData action_data)
override void CreateActionComponent()
override bool ActionConditionContinue(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void OnExecute(ActionData action_data)
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++