//zoom in function
function zoom_scope()
{
scope_on = (scope_on == off);
var temp_cam;
temp_cam.x = camera.x;
temp_cam.y = camera.y;
temp_cam.z = camera.z;
while(scope_on == 1)
{
camera.x = temp_cam.x + 50;
}
camera.x = temp_cam.x;
}
//PANEL SCRIPT
var x = 4;
bmap scope <"scope.bmp">;
bmap the_panel <"panel.bmp">;
font font1 = "font1_blue.pcx",12,16; // named the font digi_font
panel game_panel
{
//tried to do condition but did not compile
if(scope_on == on)
{
bmap = scope;
}
else
{
bmap = the_panel;
flags = visible, overlay;
//player.ammo = clip_ammo[current_weapon];
digits = 470,579,3,font1,1,player.health;
digits = 15,579,3,font1,1,player.battery;
digits = 730,579,3,font1,1, player.ammo;
digits = 246,579,3,font1,1,player.armor;
}
}