Docalypse, it's not the query that's having the error, it's not being able to detect my atmosphere trigger. I can sub in a box trigger and it compiles fine. But then when I am in game, I get the error about it not being an atmosphere trigger. So my issue is when I click Generate definitions, the editor does not detect my atmosphere trigger. I don't know what else to do. I made it global.

The query works fine as long as it is before the THEN statement. So I just do IF xxx AND queryfunction, and it works fine.