2021-04-19: OnScriptInit
This is like OnGameModeInit or OnFilterScriptInit, but works the same in both (i.e. is called once at the start, regardless of the script type). It can't do anything those callbacks can't do, just makes writing libraries more consistent. Basically it is a good option for initialisation code in an include as then it doesn?t matter where your include is used.
Quote:
public OnScriptInit()
{
}
This is like OnGameModeInit or OnFilterScriptInit, but works the same in both (i.e. is called once at the start, regardless of the script type). It can't do anything those callbacks can't do, just makes writing libraries more consistent. Basically it is a good option for initialisation code in an include as then it doesn?t matter where your include is used.