DayZ 1.24
Loading...
Searching...
No Matches
ActionBuildPartSwitch.c
Go to the documentation of this file.
1// deprecated
3{
5 {
6 //m_StanceMask = DayZPlayerConstants.STANCEMASK_NOTRAISED;
7 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
8 m_FullBody = true;
9 m_Text = "#switch_to_the_next_part";
10 }
11
17
18 override bool IsInstant()
19 {
20 return true;
21 }
22
24 {
25 return false;
26 }
27
28 override bool UseAcknowledgment()
29 {
30 return true;
31 }
32
33 override bool CanBeUsedLeaning()
34 {
35 return false;
36 }
37
38 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
39 {
40 return false;
41 }
42
43 //-------------------------------------------------
45 {
46 super.OnStartClient(action_data);
47
49 }
50
52 {
53 super.OnStartServer(action_data);
54
55 if (!GetGame().IsMultiplayer())
57 }
58
60 {
61 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
62 construction_action_data.SetNextIndex();
63 }
64}
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
int m_StanceMask
Definition ActionBase.c:53
void SetNextIndex(ActionData action_data)
override bool RemoveForceTargetAfterUse()
override void OnStartServer(ActionData action_data)
override void CreateConditionComponents()
override void OnStartClient(ActionData action_data)
override bool UseAcknowledgment()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float BASEBUILDING
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()