46 {
47 super.OnStartServer(action_data);
48
50 if (Class.CastTo(building, action_data.
m_Target.GetObject()))
51 {
52 int doorIndex = building.GetDoorIndex(action_data.
m_Target.GetComponentIndex());
53 if (doorIndex != -1)
54 {
55 if (building.CanDoorBeClosed(doorIndex))
56 {
57 building.CloseDoor(doorIndex);
58 }
59 }
60 }
61 }
ref ActionTarget m_Target