12 override void CreateConditionComponents()
27 if (
Class.CastTo(building, target.GetObject()))
29 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
35 return building.CanDoorBeClosed(doorIndex);
42 override void OnStartServer(
ActionData action_data)
45 if (
Class.CastTo(building, action_data.m_Target.GetObject()))
47 int doorIndex = building.GetDoorIndex(action_data.m_Target.GetComponentIndex());
50 if (building.CanDoorBeClosed(doorIndex))
52 building.CloseDoor(doorIndex);
59 override void OnEndServer(
ActionData action_data)
62 m_NoisePar.LoadFromPath(
"CfgVehicles SurvivorBase NoiseActionDefault");
66 if (action_data.m_Player)
67 noise.AddNoisePos(action_data.m_Player, action_data.m_Target.GetObject().GetPosition(),
m_NoisePar);