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 {
65 building.OpenDoor(doorIndex);
66 }
67 }
68 }
69 }
bool CheckIfDoorIsLocked()