OnGameModeInit

Tags:

Description

This callback is triggered when the gamemode starts.

Name Description

Examples

public OnGameModeInit()
{
    print("Gamemode started!");
    return 1;
}

Notes

TIP

This function can also be used in a filterscript to detect if the gamemode changes with RCON commands like changemode or gmx, as changing the gamemode does not reload a filterscript.