View Single Post
  #16  
Old 10-13-2011, 05:43 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Solution.
PHP Code:
//#CLIENTSIDE
function GraalControl.onKeyDown(temp.keycodetemp.keystringtemp.scancode) { 
  if (
keycode != 1073// ALT + 1
    
return;
  
  
// Limit size to level size or screen res
  
temp.pixel_width = (player.level.width screenwidth 16) ? screenwidth player.level.width 16;
  
temp.pixel_height = (player.level.height screenheight 16) ? screenheight player.level.height 16;
  
  
// Get coordinates for screenshot
  
temp.level_x player.level.width pixel_width 32;
  
temp.level_y player.level.height pixel_height 32;
  
  
makescreenshot2("screenshot" int(random(100000,1000000)) @ ".png"
    
0x3f// include everything
    
level_x
    
level_y
    
player.z
    
pixel_width
    
pixel_height); 

__________________
Reply With Quote