151 {
152 super.SetInactive(stop_timer);
153
154
157 {
159 if (attachment)
160 {
161 if (attachment.IsLockedInSlot())
162 {
163 attachment.UnlockFromParent();
164 }
165
166 attachment.OnActivatedByItem(this);
168 }
169 }
170 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
proto native EntityAI GetAttachmentFromIndex(int index)
proto native int AttachmentCount()
Returns count of attachments attached to this item.
bool DropEntity(InventoryMode mode, EntityAI owner, notnull EntityAI item)
script counterpart to engine's class Inventory