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

◆ UnlockDoor()

void ActionUnlockShippingContainer::UnlockDoor ( ActionTarget target)
inlineprotected

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

32 {
33 Building building;
34 if (Class.CastTo(building, target.GetObject()))
35 {
36 int doorIndex = TranslateLockSelectionIntoDoorIdx(target);
37 if (doorIndex != -1)
38 {
39 building.UnlockDoor(doorIndex,false);
40 }
41 }
42 }
int TranslateLockSelectionIntoDoorIdx(ActionTarget target)
Returns door idx.
Определения ActionUnlockContainerDoor.c:45
proto native void UnlockDoor(int index, bool animate=true)
Unlocks the door if locked, AJAR animation optional.

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

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