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

◆ HandleDropAttachment()

void BaseBuildingBase::HandleDropAttachment ( ItemBase item)
inlineprotected

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

771 {
772 BarbedWire wire;
773 CombinationLock lock;
774 if (Class.CastTo(wire,item)) //special barbed wire beh.
775 {
776 wire.SetMountedState( false );
777 GetInventory().DropEntity(InventoryMode.SERVER, this, wire);
778 }
779 else if (Class.CastTo(lock,item))
780 {
781 lock.UnlockServer(null,this);
782 }
783 else if (item)//generic behaviour
784 {
785 GetInventory().DropEntity(InventoryMode.SERVER, this, item);
786 }
787 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
void CombinationLock()
Определения CombinationLock.c:33

Перекрестные ссылки Class::CastTo().

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