Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
spookytrigger.c
Go to the documentation of this file.
1 class SpookyTrigger extends EffectTrigger
2 {
3 
4 }
5 
6 class SpookyTrigger23 extends SpookyTrigger
7 {
8  protected static ref SpookyTriggerEventsHandler m_EventsHandler;
9 
10  override void OnEnterClientEvent( TriggerInsider insider )
11  {
12  super.OnEnterClientEvent( insider );
13  //Print("------------------------ >Entering ");
14  PlayerBase player = PlayerBase.Cast(insider.GetObject());
16  }
17 
18 
19  override void OnLeaveClientEvent( TriggerInsider insider )
20  {
21  super.OnLeaveClientEvent( insider );
22  //Print("------------------------ >Leaving ");
23  m_EventsHandler = null;
24  }
25 
26  override protected void OnStayClientEvent(TriggerInsider insider, float deltaTime)
27  {
28  super.OnStayClientEvent(insider, deltaTime);
29  //this should be getting called only on the controlled player, as the controlled player should be the only entity, which gets added as insider client-side
30  if (m_EventsHandler)
31  m_EventsHandler.Update(deltaTime);
32  }
33 }
m_EventsHandler
class SpookyTrigger extends EffectTrigger m_EventsHandler
TriggerInsider
The object which is in a trigger and its metadata.
Definition: trigger.c:2
OnLeaveClientEvent
override void OnLeaveClientEvent(TriggerInsider insider)
Definition: spookytrigger.c:19
OnEnterClientEvent
override void OnEnterClientEvent(TriggerInsider insider)
Definition: spookytrigger.c:10
PlayerBase
Definition: playerbaseclient.c:1
OnStayClientEvent
override protected void OnStayClientEvent(TriggerInsider insider, float deltaTime)
Definition: spookytrigger.c:26
EffectTrigger
Definition: contaminatedtrigger.c:2
SpookyTriggerEventsHandler
void SpookyTriggerEventsHandler(notnull PlayerBase player)
Definition: spookyareamisc.c:208