DayZ 1.24
Loading...
Searching...
No Matches
ActionTurnValveUndergroundReservoir.c
Go to the documentation of this file.
2{
7}
8
10{
11
13 {
15 }
16
18 {
19 super.CreateAndSetupActionCallback(action_data);
20
22 if (reservoir)
23 {
24 if (action_data.m_Callback)
25 {
26 array<vector> data = reservoir.GetValveAligningPointsWS(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
27 vector position = data[0];
28 vector direction = data[1] - data[0];
29
30 action_data.m_Callback.SetAligning(position, direction.Normalized());
31 }
32 }
33 }
34
36 {
37 super.OnStartAnimationLoopServer(action_data);
38
40 if (reservoir)
41 reservoir.OnValveManipulationStart(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
42 }
43
45 {
46 super.OnEndAnimationLoop(action_data);
47
49 if (reservoir)
50 reservoir.OnValveManipulationCanceled(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
51 }
52
54 {
55 super.OnFinishProgressServer(action_data);
56
58 if (reservoir)
59 reservoir.OnValveManipulationEnd(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
60 }
61}
override void OnFinishProgressServer(ActionData action_data)
override void OnEndAnimationLoop(ActionData action_data)
override void OnStartAnimationLoopServer(ActionData action_data)
ActionTurnValveCB ActionContinuousBaseCB ActionTurnValve()
ActionTurnValveUndergroundReservoirCB ActionTurnValveCB ActionTurnValveUndergroundReservoir()
void CreateAndSetupActionCallback(ActionData action_data)
void Land_Underground_WaterReservoir()
ActionData m_ActionData
ref CABase m_ActionComponent
Definition ActionBase.c:30