Some people have hallucinations when they have not slept for a long time; other people have something resembling a hallucination before falling asleep. This is usually called hypnagogia. Most of the time, the people experiencing this kind of hallucinations are aware of the fact that they are not real.