I ask a lot from the community, so I thought I should finally give back
Anyways, what this script does is, if compiled, will read the resolution the game is playing in, while in maximized mode only. If you are in minimized mode or using the script in the editor, it will simply return the resolution of your screen.
If you'd rather have the script instead of the 3DR, here you go:
Anyways, what this script does is, if compiled, will read the resolution the game is playing in, while in maximized mode only. If you are in minimized mode or using the script in the editor, it will simply return the resolution of your screen.
If you'd rather have the script instead of the 3DR, here you go:
Code: [Select]
void Main()
{
int IDH = iDisplayHeight();
int IDW = iDisplayWidth();
if((IDH>1) && (IDW>2));
{
OUT_22 = IDW; //OUT_22 is the displayed value of a valueprint
OUT_0 = IDH; //OUT_0 is the displayed value of a valueprint
}
}