How to/ can you make an object boundary the hill?

So, I want to make an object’s(scattershot’s in this case) boundary the hill using scripts in Forge. I haven’t yet figured out how to make it work(if it is possible in the first place).
Can anyone help me with this?

Thanks in advance.