DayZ 1.24
Loading...
Searching...
No Matches
ActionSetAlarmClock.c
Go to the documentation of this file.
12
14{
16 {
17 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_SET_ALARM;
18 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_SET_ALARM;
20
22 m_Text = "#STR_SetAlarm0";
23 }
24
30
31 override bool HasProneException()
32 {
33 return true;
34 }
35
36 override bool HasTarget()
37 {
38 return false;
39 }
40
42 {
43 }
44
45 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
46 {
47 return true;
48 }
49
51 {
52 float progress = action_data.m_Callback.GetActionComponentProgress();
54 clock.SetAlarmTimeServer(progress);
55 }
56
58 {
59 if (action_data.m_Callback)
60 {
61 float progress = action_data.m_Callback.GetActionComponentProgress();
63 alarm.SetAnimationPhaseNow("ClockAlarm", progress);
64 }
65 }
66
67};
string m_Text
Definition ActionBase.c:49
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
float m_SpecialtyWeight
Definition ActionBase.c:68
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30
ItemBase m_MainItem
Definition ActionBase.c:28
override void CreateActionComponent()
override void OnStart(ActionData action_data)
override void OnUpdate(ActionData action_data)
override bool HasProneException()
override bool HasTarget()
override void OnEndServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void SetProgress(float value)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597