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

◆ LockDoor()

void ActionLockDoors::LockDoor ( ActionTarget target)
inlineprotected

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

46 {
47 Building building;
48
49 if ( Class.CastTo(building, target.GetObject()) )
50 {
51 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
52 if ( doorIndex != -1 )
53 {
54 building.LockDoor(doorIndex);
55 }
56 }
57 }
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().