6 UndergroundTrigger m_Trigger;
8 void UndergroundTriggerCarrier()
10 RegisterNetSyncVariableInt(
"m_TriggerIndex", -1, 255);
13 void ~UndergroundTriggerCarrier()
15 if (m_Trigger && !m_Trigger.IsSetForDeletion() &&
GetGame())
24 super.OnVariablesSynchronized();
31 bool CanSpawnTrigger()
36 void RequestDelayedTriggerSpawn()
45 if (!CanSpawnTrigger())
47 RequestDelayedTriggerSpawn();
58 trigger.m_Local =
true;
60 trigger.SetPosition(
vector.Zero);
71 enum EUndergroundTriggerType
91 vector extMax = data.GetSize() * 0.5;
97 if (data.Breadcrumbs && data.Breadcrumbs.Count() > 0)
99 if (data.Breadcrumbs.Count() > 32)
101 ErrorEx(
"max 'Breadcrumb' count is 32, found: " + data.Breadcrumbs.Count());
103 m_Type = EUndergroundTriggerType.TRANSITIONING;
109 m_Type = EUndergroundTriggerType.OUTER;
113 m_Type = EUndergroundTriggerType.INNER;
120 if (!super.CanAddObjectAsInsider(
object))
126 return player.IsControlledPlayer();
141 #ifndef SERVER//to make it work in single during development
147 #ifndef SERVER//to make it work in single during development
163 handler.OnTriggerEnter(
this);
178 handler.OnTriggerLeave(
this);