taken directly from the manual:

Quote:

function sniper()
{
while(1)
{
if(mouse_right) // right mouse button pressed
{
camera.arc = max(camera.arc - time_step, 30); // reduce fiel of view
}
else
{
camera.arc = min(camera.arc + time_step, 90); // increase fiel of view
}
wait(1);
}
}




A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook