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