![Post Post](./styles/images/imageset/icon_topic_latest.gif)
Re: Best way to avoid terrainrape
DocumentationCoalition.rte/Devices/Weapons/GrenadeStick.lua
has an example
The fourth argument (described as "A reference to the vector screen will be filled out with the absolute location of the found terrain pixel of less than or equal to above strength") is a pointer to a vector that will be set as the location of the first found terrain pixel. You can just throw Vector(0,0) in there if you don't need that for anything.
Everything else should be fairly straight forward. Feel free to ask if you have a specific question.