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

◆ LockDoor()

void ActionLockDoors::LockDoor ( ActionTarget target)
inlineprotected

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

63 {
64 Building building;
65
66 if ( Class.CastTo(building, target.GetObject()) )
67 {
68 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
69 if ( doorIndex != -1 )
70 {
71 building.LockDoor(doorIndex);
72 }
73 }
74 }
proto native void LockDoor(int index, bool force=false)
Locks the door if not already locked, resets the door health. 'force = true' will close the door if o...
proto native int GetDoorIndex(int componentIndex)
Gets the index of the door based on the view geometry component index.

Перекрестные ссылки ActionTarget(), Class::CastTo(), Building::GetDoorIndex() и Building::LockDoor().

Используется в OnFinishProgressServer().