Change int by scroll wheel

I’m making an fps game and what selected weapon and animation you are is defined by an integer, and I have made it work with the numbers of the keyboard, but I want it to work with the scroll wheel too,so… how do I change an integer by the scroll wheel? I know how to make it work with floats but they increase 0.1 at a time.

thanks in advance.

and I discovered that you have to put a “> 0” or a “< 0” for it to work. sorry for the noob question

2 Likes