9 g_Game.RegisterNetworkStaticObject(
this);
22 if (!super.CanDoorBeOpened(doorIndex, checkIfLocked))
41 return super.CanDoorBeClosed(doorIndex);
64 super.OnSpawnByObjectSpawner(item);
72 foreach (
int index,
auto triggerData : jsonData.
Triggers)
74 if (triggerData.CustomSpawn)
80 foreach (
string entry : customStringData)
83 entry.Split(
"=", optionValuePair);
84 if (optionValuePair[0] ==
"undergroundTriggerTag")
86 if (optionValuePair[1] == triggerData.Tag)
Param1< int > DoorStartParams
proto native int GetDoorCount()
Returns the number of the doors in the building.
proto native void CloseDoor(int index)
Attempts to close the door.
proto native bool IsDoorClosed(int index)
When the phase is at the close phase target (0.0)
proto native bool IsDoorOpen(int index)
When the door is requested to be fully open (animation wanted phase is greater than 0....
proto native bool IsDoorOpening(int index)
When the wanted phase is at the open phase target (1.0)
static void SpawnParentedTriggers(EntityAI parent)
ref array< ref JsonUndergroundAreaTriggerData > Triggers
static void SpawnTriggerCarrier(EntityAI parent, int index, JsonUndergroundAreaTriggerData data)
void RemoveDoorTimer(int doorIndex)
void AutoCloseDoor(int doorIndex)
const float DOOR_AUTOCLOSE_TIME
override void OnSpawnByObjectSpawner(ITEM_SpawnerObject item)
override bool CanDoorBeClosed(int doorIndex)
bool IsPressureDoor(int doorIndex)
override void OnDoorOpenStart(DoorStartParams params)
override bool CanDoorBeOpened(int doorIndex, bool checkIfLocked=false)
ref map< int, ref Timer > m_AutoCloseTimers
override void DeferredInit()
override void OnDoorCloseStart(DoorStartParams params)
static JsonUndergroundTriggers GetData()
array< string > TStringArray
void Split(string sample, out array< string > output)
Splits string into array of strings separated by 'sample'.
static const string Empty