DayZ 1.24
Loading...
Searching...
No Matches
ActionTuneFrequencyOnGround.c
Go to the documentation of this file.
2{
3 string m_RadioFreq;
4
6 {
7 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW;
8 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT;
9 m_RadioFreq = string.Empty;
10 m_Text = "#tune_frequency";
11 }
12
14 {
15 Object target_object = target.GetObject();
17 m_Text = "#tune_frequency | " + transmitter.GetTunedFrequency().ToString() + " MHz";
18 }
19
20 override typename GetInputType()
21 {
23 }
24
25 override bool HasProgress()
26 {
27 return false;
28 }
29
30 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
31 {
32 Object target_object = target.GetObject();
34 string selection = target_object.GetActionComponentName(target.GetComponentIndex());
35
36 if (transmitter.GetCompEM().IsWorking() && selection == "control_panel")
37 {
38 //transmitter.DisplayRadioInfo( transmitter.GetTunedFrequency().ToString(), player );
39 //m_RadioFreq = transmitter.GetTunedFrequency().ToString();
40
41 return true;
42 }
43
44 return false;
45 }
46
48 {
50 transmitter.SetNextFrequency(action_data.m_Player);
51 }
52}
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnExecuteServer(ActionData action_data)
override void OnActionInfoUpdate(PlayerBase player, ActionTarget target, ItemBase item)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
static const string Empty
Definition EnString.c:7