DayZ 1.24
Loading...
Searching...
No Matches
ActionNextCombinationLockDial.c
Go to the documentation of this file.
2{
4 {
5 m_Text = "#next_combination_lock_dial";
6 }
7
13
14 override bool HasTarget()
15 {
16 return false;
17 }
18
19 override bool IsInstant()
20 {
21 return true;
22 }
23
25 {
26 return false;
27 }
28
29 override bool UseAcknowledgment()
30 {
31 return true;
32 }
33
34 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
35 {
36 if (item.IsInherited(CombinationLock))
37 {
38 ConstructionActionData construction_action_data = player.GetConstructionActionData();
39 construction_action_data.SetCombinationLock(CombinationLock.Cast(item));
40
41 return true;
42 }
43
44 return false;
45 }
46
48 {
49 super.Start(action_data);
50
51 //set next dial
54 combination_lock.SetNextDial();
55 }
56}
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void Start(ActionData action_data)