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

◆ DetachAllAttachments()

void ItemBase::DetachAllAttachments ( )
inlineprotected

detaches everything on catching end (some slots may not be accessible when folded)

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

785 {
786 int count = GetInventory().AttachmentCount();
787 if (count > 0)
788 {
789 EntityAI att;
790 for (int i = 0; i < count; i++)
791 {
792 att = GetInventory().GetAttachmentFromIndex(i);
793 GetInventory().DropEntity(InventoryMode.SERVER,this,att);
794 }
795 }
796 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
class LogManager EntityAI

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