Disable Screenshot

Aerisetta

Active member
Hi

I am currently using Screenshot button for something else

In my script it currently turns off it off changeopenborvariant("noscreenshot", 1);

but the first time the player presses it, it still takes the first screenshot

I would like to make the game start loaded with changeopenborvariant("noscreenshot", 1); already set, where can I put that?
 
Hi

I am currently using Screenshot button for something else

In my script it currently turns off it off changeopenborvariant("noscreenshot", 1);

but the first time the player presses it, it still takes the first screenshot

I would like to make the game start loaded with changeopenborvariant("noscreenshot", 1); already set, where can I put that?
@Aerisetta As a suggestion you can disable it in events like loading.c or update.c. To prevent from running it all the time you can check if it's already disabled, like this:

C:
void main()
{
    if(!openborvariant("noscreenshot"))
    {
        changeopenborvariant("noscreenshot", 1);
    }
}

The loading.c event is useful in case you want to disable at the first load screen. The update.c (not the updated.c) is useful to capture and interrupt key presses before the engine does an action, similar to the inputall.c but this last one is available only in the v4.0 build.
 
Last edited:
Back
Top Bottom