I thought about this, and have done key press things before, but since people can map their keys anyway they want, how do we know its the zoom key?
Yeah that could be a problem , i wasnt sure what you wanted this for mate, if is for a cutscene then a rough workaround is ok, but the speed and accuracy you need here expecially in mp , you need a really efficient way .
On the oher hand :)0. let me throw a curveball at you, its something i have often thought of but will never have the time to do.
why dont you if this is for use on an addon vehicle . take a bis man mlod and make it a part of the vehicle and use the dik code for getting wasd keys .
place the unit int the turret which is a man with a gun and part of the vehicle .and animate the turret on the vehicle , you have all the anims ready made.
you can set object texture the whole man shape and apply the right kind of clothing (cept intricate pouches etc).
it will all be good in mp and you could get away with some generic gun shape i guess ?
sounds cheesy huh , but i think personally its better than the ,now you see me here ,err no iam over her we get by using setpos in mp.
anyway good luck wth which ever way you use.