DayZ 1.24
Loading...
Searching...
No Matches
ActionNextCombinationLockDialOnTarget Class Reference
Inheritance diagram for ActionNextCombinationLockDialOnTarget:
[legend]
Collaboration diagram for ActionNextCombinationLockDialOnTarget:
[legend]

Private Member Functions

void ActionNextCombinationLockDialOnTarget ()
 
override void CreateConditionComponents ()
 
override bool IsInstant ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionNextCombinationLockDialOnTarget.c.

Constructor & Destructor Documentation

◆ ActionNextCombinationLockDialOnTarget()

void ActionNextCombinationLockDialOnTarget::ActionNextCombinationLockDialOnTarget ( )
inlineprivate

Definition at line 3 of file ActionNextCombinationLockDialOnTarget.c.

4 {
5 m_Text = "#next_combination_lock_dial";
6 }
string m_Text
Definition ActionBase.c:49

References m_Text.

Member Function Documentation

◆ ActionCondition()

override bool ActionNextCombinationLockDialOnTarget::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 19 of file ActionNextCombinationLockDialOnTarget.c.

20 {
21 if (!target.GetObject())
22 return false;
23
24 CombinationLock lock = CombinationLock.Cast(target.GetObject());
25 if (lock && lock.GetHierarchyParent() && Fence.Cast(lock.GetHierarchyParent()))
26 {
27 ConstructionActionData construction_action_data = player.GetConstructionActionData();
28 construction_action_data.SetCombinationLock(lock);
29
30 return true;
31 }
32
33 return false;
34 }

◆ CreateConditionComponents()

override void ActionNextCombinationLockDialOnTarget::CreateConditionComponents ( )
inlineprivate

◆ IsInstant()

override bool ActionNextCombinationLockDialOnTarget::IsInstant ( )
inlineprivate

Definition at line 14 of file ActionNextCombinationLockDialOnTarget.c.

15 {
16 return true;
17 }

◆ Start()

override void ActionNextCombinationLockDialOnTarget::Start ( ActionData action_data)
inlineprivate

Definition at line 36 of file ActionNextCombinationLockDialOnTarget.c.

37 {
38 super.Start(action_data);
39
40 //set next dial
41 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
44 combination_lock.SetNextDial();
45 }

The documentation for this class was generated from the following file: