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

◆ LockServer()

void LockServer ( EntityAI parent,
bool ignore_combination = false )
protected

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

385 {
386 if (LogManager.IsBaseBuildingLogEnable()) bsbDebugPrint("[bsb] CombinationLock.LockServer " + " m_Combination=" + m_Combination + " m_CombinationLocked=" + m_CombinationLocked);
387 if (IsLockAttached())
388 {
389 if (!ignore_combination)
390 {
392
393 //set slot lock
394 InventoryLocation inventoryLocation = new InventoryLocation;
395 GetInventory().GetCurrentInventoryLocation(inventoryLocation);
396 parent.GetInventory().SetSlotLock(inventoryLocation.GetSlot(), true);
397
399 }
400 ShuffleLock();
401 SetTakeable(false);
403 //synchronize
404 Synchronize();
405 }
406 }
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
Определения BaseBuildingBase.c:1291
void ShuffleLock()
Определения CombinationLock.c:471
void CheckLockedStateServer(bool insideLock=false)
Определения CombinationLock.c:511
void SetCombinationLocked(int combination)
Определения CombinationLock.c:251
LockAction
Определения CombinationLock.c:13
void Synchronize()
Определения CombinationLock.c:205
int m_Combination
Определения CombinationLock.c:33
int m_CombinationLocked
Определения CombinationLock.c:35
bool IsLockAttached()
Определения CombinationLock.c:534
LockAction m_LockActionPerformed
Определения CombinationLock.c:41
override void SetTakeable(bool pState)
Определения ItemBase.c:4362
proto native int GetSlot()
returns slot id if current type is Attachment
InventoryLocation.
Определения InventoryLocation.c:30
static bool IsBaseBuildingLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:809

Перекрестные ссылки bsbDebugPrint(), CheckLockedStateServer(), InventoryLocation::GetSlot(), LogManager::IsBaseBuildingLogEnable(), IsLockAttached(), m_Combination, m_CombinationLocked, m_LockActionPerformed, SetCombinationLocked(), SetTakeable(), ShuffleLock() и Synchronize().

Используется в AfterStoreLoad() и OnItemLocationChanged().