Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionplaceonground.c
Go to the documentation of this file.
2 {
3  override void CreateActionComponent()
4  {
5  m_ActionData.m_ActionComponent = new CAContinuousTime(UATimeSpent.DEFAULT_PLACE);
6  }
7 };
8 
10 {
11  void ActionPlaceOnGround()
12  {
13  m_CallbackClass = ActionPlaceOnGroundCB;
14  m_Text = "#place_object";
15  }
16 
17  override void CreateConditionComponents()
18  {
21  }
22 
23  override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
24  {
25  if ( player && player.IsAlive() && !item.IsDamageDestroyed() ) //&& IsConscious && IsNotCaptured
26  {
27  return true;
28  }
29  else
30  {
31  return false;
32  }
33  }
34 
35  override void OnFinishProgressServer( ActionData action_data )
36  {
37  action_data.m_Player.DropItem(action_data.m_MainItem);
38  }
39 };
ItemBase
Definition: inventoryitem.c:730
CAContinuousTime
Definition: cacontinuoustime.c:1
CCTNone
Definition: cctnone.c:1
ActionPlaceOnGroundCB
Definition: actionplaceonground.c:1
ActionPlaceOnGround
Definition: actionplaceonground.c:9
CCIDummy
Definition: ccidummy.c:1
PlayerBase
Definition: playerbaseclient.c:1
ActionTarget
class ActionTargets ActionTarget
ActionData
Definition: actionbase.c:20
UATimeSpent
Definition: actionconstants.c:26
ActionContinuousBaseCB
Definition: actioncontinuousbase.c:1
m_Text
protected string m_Text
Definition: actionbase.c:49
m_ConditionItem
ref CCIBase m_ConditionItem
Definition: actionbase.c:55
ActionContinuousBase
Definition: actioncontinuousbase.c:132
m_ConditionTarget
ref CCTBase m_ConditionTarget
Definition: actionbase.c:56