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

Private Member Functions

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

Detailed Description

Definition at line 1 of file ActionTurnOnTransmitterOnGround.c.

Constructor & Destructor Documentation

◆ ActionTurnOnTransmitterOnGround()

void ActionTurnOnTransmitterOnGround::ActionTurnOnTransmitterOnGround ( )
inlineprivate

Definition at line 3 of file ActionTurnOnTransmitterOnGround.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
6 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
7 m_Text = "#turn_on";
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 ActionTurnOnTransmitterOnGround::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 10 of file ActionTurnOnTransmitterOnGround.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().CanSwitchOn() && selection == "power_panel")
19 {
21 //transmitter.DisplayRadioInfo( "OFF", player );
22
23 return true;
24 }
25 }
26
27 return false;
28 }

◆ OnExecuteServer()

override void ActionTurnOnTransmitterOnGround::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 30 of file ActionTurnOnTransmitterOnGround.c.

31 {
33 transmitter.TurnOnTransmitter();
34 }

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