193 {
195 EntityAI attachment = GetInventory().FindAttachment(slotId);
196 if (attachment)
197 {
198 m_CodeLock = DigitalCodeLock_Bunker.Cast(attachment);
199 return;
200 }
201
203 {
204 m_CodeLock = DigitalCodeLock_Bunker.Cast(GetInventory().CreateAttachmentEx(
"DigitalCodeLock_Bunker", slotId));
206 return;
207 }
208
211 }
const string CODE_LOCK_ATTACHMENT_NAME
ms between client retries while waiting for the codelock attachment to replicate
Bunker RESOLVE_CODELOCK_RETRY_DELAY
void CodeLockVisualManager(DigitalCodeLock codeLock, CodeLockComponent component)
enum CodeLockLightState m_CodeLock
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration