# Niagara: Using a Collision Query in a location module script

**URL:** <https://forums.unrealengine.com/t/niagara-using-a-collision-query-in-a-location-module-script/117021>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [October 3, 2018, 8:37am UTC](https://forums.unrealengine.com/t/niagara-using-a-collision-query-in-a-location-module-script/117021 "2018-10-03T08:37:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emil.assarsson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@emil.assarsson](https://forums.unrealengine.com/u/emil.assarsson)\
**Post date:** [October 3, 2018, 8:37am UTC](https://forums.unrealengine.com/t/niagara-using-a-collision-query-in-a-location-module-script/117021/1 "2018-10-03T08:37:22Z")

</div>

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.
