How to get UGameEngine ref from APlayerController?

Is there a way to get the UGameEngine instance reference from the player controller on a client? If so, please let me know how. Thanks.

Hi MJLaukala`,

Try to use it:

auto pGameEngine = Cast<UGameEngine>(GEngine);
if (pGameEngine)
{
// to do smth
}

Hope it helps!

Exactly what I needed! Had no idea I was looking for a global.