Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > AController
- AController::GameHasEnded()
- APlayerController::GameHasEnded()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Controller.h |
Include | #include "GameFramework/Controller.h" |
Source | /Engine/Source/Runtime/Engine/Private/Controller.cpp |
virtual void GameHasEnded
(
class AActor * EndGameFocus,
bool bIsWinner
)
Remarks
Called from game mode upon end of the game, used to transition to proper state.
Parameters
Name | Description |
---|---|
EndGameFocus | Actor to set as the view target on end game |
bIsWinner | true if this controller is on winning team |