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

Private Member Functions

void ActionTurnOffTransmitterOnGround ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnExecuteServer (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionTurnOffTransmitterOnGround.c.

Constructor & Destructor Documentation

◆ ActionTurnOffTransmitterOnGround()

void ActionTurnOffTransmitterOnGround::ActionTurnOffTransmitterOnGround ( )
inlineprivate

Definition at line 3 of file ActionTurnOffTransmitterOnGround.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
7 m_Text = "#turn_off";
8 }
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, m_StanceMask, and m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 10 of file ActionTurnOffTransmitterOnGround.c.

11 {
12 Object target_object = target.GetObject();
13 if (player && target_object && target_object.IsStaticTransmitter())
14 {
16 string selection = target_object.GetActionComponentName(target.GetComponentIndex());
17
18 if (target_entity.HasEnergyManager() && target_entity.GetCompEM().CanSwitchOff() && selection == "power_panel")
19 {
21 //transmitter.DisplayRadioInfo( "ON", player );
22
23 return true;
24 }
25 }
26
27 return false;
28 }

◆ OnExecuteServer()

override void ActionTurnOffTransmitterOnGround::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 30 of file ActionTurnOffTransmitterOnGround.c.

31 {
33 transmitter.TurnOffTransmitter();
34 }

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