54 {
55 super.OnStartServer(action_data);
56
57 Building building;
58 if (Class.CastTo(building, action_data.m_Target.GetObject()))
59 {
60 int doorIndex = building.
GetDoorIndex(action_data.m_Target.GetComponentIndex());
61 if (doorIndex != -1)
62 {
64 {
66 }
67 }
68 }
69 }
bool CheckIfDoorIsLocked()
proto native void OpenDoor(int index)
Attempts to open the door.
bool CanDoorBeOpened(int doorIndex, bool checkIfLocked=false)
proto native int GetDoorIndex(int componentIndex)
Gets the index of the door based on the view geometry component index.