need help with mouse wheel controle

i have a game i need it to check when i move the mouse wheel up or down to change a valu in oe of my scripts can anyone help me plz:shock:

this is for a zoom for main camrea

I think you need to play with the field of view

http://unity3d.com/support/documentation/ScriptReference/Camera-fieldOfView.html

if you script it so that with the mousewheel you get different fields of view it will “zoom” the camera in and out.

thanks but it wasunt what i was looking for but i found a difrent code that worked

if (Input.GetAxis("Mouse ScrollWheel") < 0)
 {
       height += 0.5 ;
}