Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
actionbuildpartswitch.c
Go to the documentation of this file.
1
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 //-------------------------------------------------
44 override void OnStartClient(ActionData action_data)
45 {
46 super.OnStartClient( action_data );
47
48 SetNextIndex(action_data);
49 }
50
51 override void OnStartServer(ActionData action_data)
52 {
53 super.OnStartServer( action_data );
54
55 if (!g_Game.IsMultiplayer())
56 SetNextIndex(action_data);
57 }
58
59 void SetNextIndex(ActionData action_data)
60 {
61 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
62 construction_action_data.SetNextIndex();
63 }
64}
ActionBase ActionData
Definition actionbase.c:30
class ActionTargets ActionTarget
bool m_FullBody
Definition actionbase.c:67
string m_Text
Definition actionbase.c:64
ref CCIBase m_ConditionItem
Definition actionbase.c:70
ref CCTBase m_ConditionTarget
Definition actionbase.c:71
int m_StanceMask
Definition actionbase.c:68
void SetNextIndex(ActionData action_data)
override void OnStartClient(ActionData action_data)
override void CreateConditionComponents()
override bool RemoveForceTargetAfterUse()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool UseAcknowledgment()
override void OnStartServer(ActionData action_data)
const float BASEBUILDING
DayZGame g_Game
Definition dayzgame.c:3942
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602