DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnStartServer()

override void ActionCloseDoors::OnStartServer ( ActionData action_data)
inlineprivate

См. определение в файле ActionCloseDoors.c строка 42

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 }
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)

Перекрестные ссылки ActionData, Building::CanDoorBeClosed(), Class::CastTo(), Building::CloseDoor() и Building::GetDoorIndex().