I get an error when it gets to the following lines.

crosshair_pan.pos_x = screen_size.x / 2 - 32; // the crosshair has 16x16 pixels
crosshair_pan.pos_y = screen_size.y / 2 - 16;

And

crosshair_pan.visible = on;

I am guessing I need to define crosshair_pan.pos and screen_size. Not exactly sure how to go about doing that.

Will this gode put my crosshair in line with bullets? In Workshop 33 bullets come out of a vertex that is the muzzle of the weapon itself, If I place crosshair in middle of the screen it will not work. I am guessing I would need bullet to originate at the crosshair in order for it to be accurate. Like I said I am new to game development and not sure what is the best way to do this.

Thanks for any good info / ideas.