DayZ 1.24
Loading...
Searching...
No Matches
ActionSetKitchenTimer.c
Go to the documentation of this file.
12
14{
16 {
17 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_SET_KITCHENTIMER;
18 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONMOD_SET_KITCHENTIMER;
20
22 m_Text = "#STR_SetTimer0";
23 }
24
30
31 override bool HasProneException()
32 {
33 return true;
34 }
35
36 override bool HasTarget()
37 {
38 return false;
39 }
40
41
42 override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
43 {
44 return true;
45 }
46
48 {
49 float progress = action_data.m_Callback.GetActionComponentProgress();
50 KitchenTimer clock = KitchenTimer.Cast(action_data.m_MainItem);
51 clock.SetAlarmTimeServer(progress);
52 }
53
55 {
56
57 }
58
60 {
61 float progress = action_data.m_Callback.GetActionComponentProgress();
62 KitchenTimer clock = KitchenTimer.Cast(action_data.m_MainItem);
63 clock.SetAnimationPhaseNow("ClockAlarm", progress);
64 }
65
66};
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 OnEndAnimationLoopServer(ActionData action_data)
override bool HasProneException()
override void OnUpdate(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnEndServer(ActionData action_data)
override void CreateConditionComponents()
void SetProgress(float value)
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597