RegisterInitGameStatePreHook

This registers a callback that will get called before AGameModeBase::InitGameState is called.

Parameters (except strings & bools & FOutputDevice) must be retrieved via Param:Get() and set via Param:Set().

Parameters

#TypeInformation
1functionThe callback to register

Callback Parameters

#TypeInformation
1AGameStateBaseThe game state context

Example

RegisterInitGameStatePreHook(function(GameState)
    print("InitGameStatePreHook")
end)