public BaseEntity Drop(Vector3 vPos, Vector3 vVelocity, Quaternion rotation = default(Quaternion)) { RemoveFromWorld(); BaseEntity baseEntity = null; if (vPos != Vector3.zero && !info.HasFlag(ItemDefinition.Flag.NoDropping)) { baseEntity = CreateWorldObject(vPos, rotation); if ((bool)baseEntity) { baseEntity.SetVelocity(vVelocity); } } else { Remove(); } Interface.CallHook("OnItemDropped", this, baseEntity); RemoveFromContainer(); return(baseEntity); }