DayZ 1.24
Loading...
Searching...
No Matches
ActionTurnOnAlarmClock.c
Go to the documentation of this file.
2{
7}
8
10{
12 {
13 m_CallbackClass = ActionTurnOnAlarmClockCB;
14 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_STOP_ALARM;
15 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_STOP_ALARM;
16 m_Text = "#turn_on";
17 }
18
19 override bool HasProneException()
20 {
21 return true;
22 }
23
24 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
25 {
27 return (!alarm.IsAlarmOn() && !alarm.IsRinging());
28 }
29
30 /*
31 override void OnExecuteClient( ActionData action_data )
32 {
33 AlarmClock_ColorBase alarm = AlarmClock_ColorBase.Cast(action_data.m_MainItem);
34 if (alarm)
35 alarm.TurnOnClient();
36 }
37 */
38
40 {
42 if (alarm)
43 alarm.TurnOn();
44 }
45}
string m_Text
Definition ActionBase.c:49
ActionTurnOnAlarmClockCB ActionSingleUseBaseCB ActionTurnOnAlarmClock()
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnExecuteServer(ActionData action_data)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597