The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
thetastyfish Offline
Junior Member

Posts: 18
Threads: 6
Joined: Feb 2013
Reputation: 0
#1
FadePlayerFOVMulTo Problems

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!
03-21-2013, 11:02 AM
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)