ZOOM???
by Edward Smith · in Torque Game Engine · 01/23/2002 (12:23 am) · 3 replies
Is there any code out there to get it to only zoom with some weapons? eg. a sniper rifle
About the author
Currently working on a WW2 FPS game.
#2
Ryan
01/23/2002 (7:57 am)
all i did was write onmount and onunmount functions for the weapons i wanted to be able to zoom with. in that function, besides the default mounting stuff, i set a variable canzoom to 1 if i want to zoom, 0 if i dont want to be able to with that weapon. then in default.bind.cs, i check that as a precondition to zoom. Ryan
#3
01/23/2002 (8:51 pm)
mmm... I'll try tonight THX!
Torque Owner Bryan Walters