Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actionplaceonground.c
Go to the documentation of this file.
8
11{
13 {
15 m_Text = "#place_object";
16 }
17
19 {
22 }
23
24 override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
25 {
26 if ( player && player.IsAlive() && !item.IsDamageDestroyed() ) //&& IsConscious && IsNotCaptured
27 {
28 return true;
29 }
30 else
31 {
32 return false;
33 }
34 }
35
36 override void OnFinishProgressServer( ActionData action_data )
37 {
38 action_data.m_Player.DropItem(action_data.m_MainItem);
39 }
40};
ActionBase ActionData
Definition actionbase.c:30
class ActionTargets ActionTarget
ActionData m_ActionData
string m_Text
Definition actionbase.c:64
ref CCIBase m_ConditionItem
Definition actionbase.c:70
ref CCTBase m_ConditionTarget
Definition actionbase.c:71
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT_PLACE