RTS camera zooming problem

I have been working on an RTS for about a week, i have got the camera script fairly well complete but i still need to get the zoom working. i would like a smooth zoom from the mousewheel. any ideas?



007.blend (151 KB)

Use an IPO. Make an animation of the camera zooming then setup logic and props like this:

Property: zoom = 0
Always_______________AND_________________________IPO: Property: zoom
Mouse(Wheel Up)_____Expression: zoom <= fullzoom -1____Property: zoom =+1
Mouse(Wheel Down)_____Expression: zoom <= fullzoom +1__Property: zoom =- 1

That should do it =D