DayZ 1.24
Loading...
Searching...
No Matches
ActionFoldBaseBuildingObject.c
Go to the documentation of this file.
20
26
27 override typename GetInputType()
28 {
30 }
31
32 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
33 {
34 Object targetObject = target.GetObject();
35
36 if (targetObject.CanUseConstruction())
37 {
39
40 if (base_building.CanFoldBaseBuildingObject())
41 return true;
42 }
43
44 return false;
45 }
46
48 {
51
52 base_building.CreateConstructionKitInHands(action_data.m_Player);
53 base_building.DestroyConstruction();
54 }
55
57 {
58 return " folded " + action_data.m_Target.GetObject().GetDisplayName();
59 }
60}
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
void CreateConditionComponents()
Definition ActionBase.c:196
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
string GetAdminLogMessage(ActionData action_data)
int m_StanceMask
Definition ActionBase.c:53
ActionFoldBaseBuildingObjectCB ActionContinuousBaseCB ActionFoldBaseBuildingObject()
ActionData m_ActionData
void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
Definition ActionBase.c:30
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT
const float DEFAULT_DEPLOY
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597