Note to myself and the community.
If for whatever reason, you need to spectate your Pawn. In your custom GameInfo class, define this:
In your custom PlayerController class, define this:
When in PIE or in game, use the EnableCheats command.
Then, you can use Insert, Delete, Begin, End, Page Up, Page Down to control the cameras.
Thanks to Yoshiro!
Cheers!
P.S.: Don't forget to remove the code when you're ready for a release!
If for whatever reason, you need to spectate your Pawn. In your custom GameInfo class, define this:
Code:
function bool AllowCheats(PlayerController P)
{
return true;
}
In your custom PlayerController class, define this:
Code:
exec function Camera( name NewMode )
{
ServerCamera(NewMode);
}
reliable server function ServerCamera( name NewMode )
{
if ( NewMode == '1st' )
{
NewMode = 'FirstPerson';
}
else if ( NewMode == '3rd' )
{
NewMode = 'ThirdPerson';
}
SetCameraMode( NewMode );
if ( PlayerCamera != None )
`log("#### " $ PlayerCamera.CameraStyle);
}
When in PIE or in game, use the EnableCheats command.
Then, you can use Insert, Delete, Begin, End, Page Up, Page Down to control the cameras.
Thanks to Yoshiro!
Cheers!
P.S.: Don't forget to remove the code when you're ready for a release!
Last edited: