Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AGameModeBase
Description
Adds the delegate to the list if the player Controller has the right to pause the game. The delegate is called to see if it is ok to unpause the game, e.g. the reason the game was paused has been cleared.
| Name | SetPause |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameModeBase.h |
| Include Path | #include "GameFramework/GameModeBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameModeBase.cpp |
virtual bool SetPause
(
APlayerController * PC,
FCanUnpause CanUnpauseDelegate
)
Parameters
| Name | Remarks |
|---|---|
| PC | the player Controller to check for admin privs |
| CanUnpauseDelegate | the delegate to query when checking for unpause |