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

Private Member Functions

void ActionToggleNVG ()
 
override bool IsInstant ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool HasTarget ()
 
override bool UseMainItem ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionToggleNVG.c.

Constructor & Destructor Documentation

◆ ActionToggleNVG()

void ActionToggleNVG::ActionToggleNVG ( )
inlineprivate

Definition at line 3 of file ActionToggleNVG.c.

4 {
5 }

Member Function Documentation

◆ ActionCondition()

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

Definition at line 33 of file ActionToggleNVG.c.

34 {
35 NVGoggles goggles;
37 NVmount = Clothing.Cast(target.GetObject());
38 if (!NVmount)
39 return false;
40 goggles = NVGoggles.Cast(NVmount.FindAttachmentBySlotName("NVG"));
41 if (goggles)
42 return true;
43
44 return false;
45 }

◆ CreateConditionComponents()

override void ActionToggleNVG::CreateConditionComponents ( )
inlineprivate

Definition at line 12 of file ActionToggleNVG.c.

13 {
16 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
const float DEFAULT

References UAMaxDistances::DEFAULT, m_ConditionItem, and m_ConditionTarget.

◆ GetInputType()

override ActionToggleNVG::GetInputType ( )
inlineprivate

Definition at line 18 of file ActionToggleNVG.c.

◆ HasTarget()

override bool ActionToggleNVG::HasTarget ( )
inlineprivate

Definition at line 23 of file ActionToggleNVG.c.

24 {
25 return true;
26 }

◆ IsInstant()

override bool ActionToggleNVG::IsInstant ( )
inlineprivate

Definition at line 7 of file ActionToggleNVG.c.

8 {
9 return true;
10 }

◆ Start()

override void ActionToggleNVG::Start ( ActionData action_data)
inlineprivate

Definition at line 47 of file ActionToggleNVG.c.

48 {
49 super.Start(action_data);
50
51 NVGoggles goggles;
53
54 NVmount = Clothing.Cast(action_data.m_Target.GetObject());
55 goggles = NVGoggles.Cast(NVmount.FindAttachmentBySlotName("NVG"));
56
57 goggles.RotateGoggles(goggles.m_IsLowered);
58 }

◆ UseMainItem()

override bool ActionToggleNVG::UseMainItem ( )
inlineprivate

Definition at line 28 of file ActionToggleNVG.c.

29 {
30 return false;
31 }

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