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 {
53 {
55 }
56 }
57 }
58 }
proto native void CloseDoor(int index)
Attempts to close the door.
proto native int GetDoorIndex(int componentIndex)
Gets the index of the door based on the view geometry component index.
bool CanDoorBeClosed(int doorIndex)