DayZ 1.24
Loading...
Searching...
No Matches
ActionPlaceOnGround.c
Go to the documentation of this file.
8
10{
12 {
14 m_Text = "#place_object";
15 }
16
18 {
21 }
22
23 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
24 {
25 if (player && player.IsAlive() && !item.IsDamageDestroyed()) //&& IsConscious && IsNotCaptured
26 return true;
27 else
28 return false;
29 }
30
32 {
33 action_data.m_Player.DropItem(action_data.m_MainItem);
34 }
35};
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
override void CreateActionComponent()
override void CreateConditionComponents()
override void OnFinishProgressServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT_PLACE