43 {
44 super.OnStartServer(action_data);
45
46 Building building;
47 if (Class.CastTo(building, action_data.m_Target.GetObject()))
48 {
49 int doorIndex = building.GetDoorIndex(action_data.m_Target.GetComponentIndex());
50 if (doorIndex != -1)
51 {
52 if (building.CanDoorBeClosed(doorIndex))
53 {
54 building.CloseDoor(doorIndex);
55 }
56 }
57 }
58 }