DayZ 1.24
Loading...
Searching...
No Matches
Compass.c
Go to the documentation of this file.
1class Compass : ItemCompass
2{
4
5 void Compass()
6 {
7 m_Openable = new OpenableBehaviour(false);
8
9 RegisterNetSyncVariableBool("m_Openable.m_IsOpened");
10
12 }
13
14 override void Open()
15 {
16 m_Openable.Open();
17 SetSynchDirty();
18
20 }
21
22 override void Close()
23 {
24 m_Openable.Close();
25 SetSynchDirty();
26
28 }
29
30 override bool IsOpen()
31 {
32 return m_Openable.IsOpened();
33 }
34
35 protected void UpdateVisualState()
36 {
37 if (IsOpen())
38 SetAnimationPhase("cover", 1.0);
39 else
40 SetAnimationPhase("cover", 0.0);
41 }
42
44 {
45 super.OnVariablesSynchronized();
46
48 }
49
50 override void SetActions()
51 {
52 super.SetActions();
53
57 }
58}
void AddAction(typename actionName)
override bool IsOpen()
Definition Compass.c:30
override void OnVariablesSynchronized()
Definition Compass.c:43
override void Open()
Definition Compass.c:14
void UpdateVisualState()
Definition Compass.c:35
ref OpenableBehaviour m_Openable
Definition Compass.c:3
override void Close()
Definition Compass.c:22
void Compass()
Definition Compass.c:5
override void SetActions()
Definition Compass.c:50