# How to used the mousescroll to as a modal function to, for example, move the object?

For example, in the template in the text editor has an example script that utilizes a modal function with mousemove to change the location of the object along and axis, how can I use the same function, but instead it's the scroller that controls the function ?

The event.type that you get within modal() will be WHEELUPMOUSE or WHEELDOWNMOUSE when the scrollwheel is used.
def modal(self, context, event):