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

◆ UnlockDoor()

void ActionUnlockDoors::UnlockDoor ( ActionTarget target)
inlineprotected

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

45 {
46 Building building;
47
48 if ( Class.CastTo(building, target.GetObject()) )
49 {
50 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
51 if ( doorIndex != -1 )
52 {
53 building.UnlockDoor(doorIndex);
54 }
55 }
56 }
proto native void UnlockDoor(int index, bool animate=true)
Unlocks the door if locked, AJAR animation optional.
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::UnlockDoor().

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