I assume I should place this code in the .cpp file only. But I get the error:
D:\Unreal Projects\Test48\Source\Test48\Test48Character.cpp(50): error C2440: ‘initializing’ : cannot convert from ‘AController *’ to ‘APlayerController *’
1> Cast from base to derived requires dynamic_cast or static_cast
So I see the types aren’t the same. Should I use the casting to get the correct type?