PDA

View Full Version : Help please. Changing MobileGame default camera FOV ??



charlesp2
01-07-2011, 02:25 PM
Hi Guys,

Ok so every day I make more and more progress on my game, and I'm feeling good!

However I can't for the life of me figure out how to change the DEFAULT Camera's FOV on a FPS (default 2-thumbstick controller) game... I've tried adding "DefaultFOV=50.0" in the Development/Src/MobileGame/Classes/MobilePC.uc file, and YES it compiles, BUT it won't change my default camera's FOV angle... :(

I also changed my level's PIE and "Accept these game types" value to MobileGame, to no avail... What gives?

Is there an EASY way to set the default FOV in some .uc or .ini file, WITHOUT having to code a Camera Class ??

PLEASE NOTE: I'm not using ANY cameras in my level, just the default PlayerStart_0...

I know this is an easy answer for you guys, thanks for your help!
Cheers and thanks, :)

-Charles

qzl393700
08-05-2011, 02:22 AM
old page, i just want to say a little.
in MobilePC.uc, add custom code as:
var float newFOV;
...
...
exec function SetNewFOV()
{
playercamera.SetFOV(newFOV);
}


in kismet, use 'consolecommand' to call exec function and use 'ModifyProperty' to change the value of 'newFOV'. This is a way to change FOV in desire.
Maybe, the kismet is unnecessary.

jianjiang
08-05-2011, 03:44 AM
have u ever tried this function in your pawn class(if your pawn class is inherited from MobilePawn)



simulated function bool CalcCamera( float fDeltaTime, out vector out_CamLoc, out rotator out_CamRot, out float out_FOV )
{
out_CamLoc = ...;
out_CamRot = ...;
out_FOV = YourFOV;
return true;
}