Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
land_underground_panel_lever.c
Go to the documentation of this file.
2 {
3  override void SetActions()
4  {
5  super.SetActions();
6 
8  }
9 
10  void ResetPhase(EntityAI target)
11  {
12  target.SetAnimationPhaseNow("PanelLever", 0);
13  }
14 
15  override void OnPanelUsedSynchronized()
16  {
17  super.OnPanelUsedSynchronized();
18  SetAnimationPhase("PanelLever", 1);
19  GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallLater( ResetPhase, 3000, false, this);
21  }
22 
23  override void Interact()
24  {
25  super.Interact();
26  GetGame().RegisterNetworkStaticObject(this);
27  GetGame().RegisterNetworkStaticObject(GetLinkedDoor());
28  }
29 }
GetGame
proto native CGame GetGame()
CALL_CATEGORY_SYSTEM
const int CALL_CATEGORY_SYSTEM
Definition: tools.c:8
ActionUseUndergroundLever
Definition: actionuseundergroundlever.c:1
OnLEDStateChanged
void OnLEDStateChanged()
Definition: land_underground_panel.c:205
Land_Underground_Panel_Lever
Definition: land_underground_panel_lever.c:1
GetLinkedDoor
Land_Underground_EntranceBase GetLinkedDoor()
Definition: land_underground_panel.c:133
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
EntityAI
Definition: building.c:5
Land_Underground_Panel
void Land_Underground_Panel()
Definition: land_underground_panel.c:38