Niagara: Using a Collision Query in a location module script

I’m trying to make a particle system that spawn particles in the ground based on the scene depth. My idea is to use a Collision Query to preform a trace to the ground and move particles there at spawn. Would this be possible or is there another way of doing it?
When I add the Collision Query to a new script it only has a InputMap and OutputMap.