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
| # | Type | Information |
|---|---|---|
| 1 | function | The callback to register |
Callback Parameters
| # | Type | Information |
|---|---|---|
| 1 | AGameStateBase | The game state context |
Example
lua
RegisterInitGameStatePreHook(function(GameState)
print("InitGameStatePreHook")
end)
小莫的维基库