Dayz Explorer 1.28.160049
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
12 override void CreateConditionComponents()
13 {
16 }
17
18 override bool IsInstant()
19 {
20 return true;
21 }
22
23 override bool RemoveForceTargetAfterUse()
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 (!GetGame().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}
int m_StanceMask
Definition actionbase.c:62
string m_Text
Definition actionbase.c:58
ref CCIBase m_ConditionItem
Definition actionbase.c:64
bool m_FullBody
Definition actionbase.c:61
ref CCTBase m_ConditionTarget
Definition actionbase.c:65
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
proto native CGame GetGame()