"We are not going out of the hotel; it is raining."
Translation:Nem megyünk ki a szállodából; esik az eső.
Someone else should confirm this, but I think it works this way: when a verb is negated, you have to move the preverb to the end: kimegyunk becomes nem megyunk ki, you can't say nem kimegyunk
You also move the preverb to the end when you want to emphasize something else, since whatever is in front of the verb is emphasized.
In an earlier exercise with children leaving school jön was used not megy. So how do we know which to use?
Is the movement happening towards where you are? Use jön. Is the movement happening away from you? Use megy. Don't want to think about it? Use elhagy - to leave, with the accusative: "Nem hagyjuk el a szállodát."
Here it's pretty clear: you're going to stay in the hotel, so the would-be movement is away from you, to outside. You're not "going out".