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

◆ SetInactive()

override void SetInactive ( bool stop_timer = true)
protected

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

151 {
152 super.SetInactive(stop_timer);
153
154 // de-attach attachments after "activating them"
155 for (int att = 0; att < GetInventory().AttachmentCount(); att++)
156 {
157 ItemBase attachment = ItemBase.Cast(GetInventory().GetAttachmentFromIndex(att));
158 if (attachment)
159 {
160 if (attachment.IsLockedInSlot())
161 {
162 attachment.UnlockFromParent();
163 }
164
165 attachment.OnActivatedByItem(this);
166 GetInventory().DropEntity(InventoryMode.SERVER, this, attachment);
167 }
168 }
169 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
Определения InventoryItem.c:731