OnServerInitialize
Usage
- No return behavior
Example Autogenerated
csharp
private void OnServerInitialize( )
{
Puts( "OnServerInitialize works!" );
}
Location
- ServerMgr::Initialize(bool loadSave, string saveFile, bool allowOutOfDateSaves, bool skipInitialSpawn)
csharp
public bool Initialize(bool loadSave = true, string saveFile = "", bool allowOutOfDateSaves = false, bool skipInitialSpawn = false)
{
Interface.CallHook("OnServerInitialize");
this.persistance = new UserPersistance(ConVar.Server.rootFolder);
this.playerStateManager = new PlayerStateManager(this.persistance);
TutorialIsland.GenerateIslandSpawnPoints(true);
if (SingletonComponent<SpawnHandler>.Instance)
{
//---