Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FadePlayerFOVMulTo Problems
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#3
RE: FadePlayerFOVMulTo Problems

(03-21-2013, 11:02 AM)thetastyfish Wrote:
Spoiler below!

Hi! So, I'm starting to learn the art of using screen effects, and I have an issue. I'm using FadePlayerFOVMulTo, but can't figure out how to undo it after a certain amount of time.

void Valkyrie(string &in asParent, string &in asChild, int alState)
{
AddTimer("Open", 2, "Action");
PlayMusic("Ride.ogg", false, 100, 0, .5, true);
SetPlayerActive(false);
FadePlayerFOVMulTo(.5, 2);
StartPlayerLookAt("cabinet_simple_1", 10, 10, "");
}

void Action(string &in asTimer)
{
SetMoveObjectStateExt("cabinet_simple_1", 1, 50, 1000, 0, true);
AddPlayerBodyForce(-30000, 0, -100000, false);
AddPropForce("armchair_1", -500, 1000, 0, "world");
AddPropForce("goblet_1", -500, 1000, 0, "world");
AddPropImpulse("armchair_1", -100, 100, 0, "world");
SetPlayerActive(true);
FadePlayerFOVMulTo(0, 0);
StopPlayerLookAt();
ChangePlayerStateToNormal();
}


Under void Action, I tried to set it back to 0, but it didn't do anything, the screen was still zoomed in. If anyone could help me, I would really appreciate it. Thank you!

It's because the default value is 1 I believe...
My 'reset' call looks like this

FadePlayerFOVMulTo(1, 1);

Hope that helps. In the future, questions like this should go into the 'Development Support' sub-forum Smile

03-21-2013, 12:49 PM
Find


Messages In This Thread
FadePlayerFOVMulTo Problems - by thetastyfish - 03-21-2013, 11:02 AM
RE: FadePlayerFOVMulTo Problems - by Adrianis - 03-21-2013, 12:49 PM
RE: FadePlayerFOVMulTo Problems - by DnALANGE - 03-21-2013, 03:09 PM
RE: FadePlayerFOVMulTo Problems - by thetastyfish - 03-21-2013, 07:46 PM



Users browsing this thread: 1 Guest(s)