153 {
154 super.SetInactive(stop_timer);
155
156
159 {
161 if (attachment)
162 {
163 if (attachment.IsLockedInSlot())
164 {
165 attachment.UnlockFromParent();
166 }
167
168 attachment.OnActivatedByItem(this);
170 }
171 }
172 }
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