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)
Here's the thing: I have 2 maps. The first one ends with the player fainting and then loading the next map. In the first map, there's a lot of screen effects as you can see in the script below.
Now, the problem is that when the second map has loaded, it keeps the blurred slow-mo-ish screen effect. I can't seem to fix it no matter what I try, so I hope you know how to solve this.
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
//FadeImageTrailTo(3, 1);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(65, 100, 100); // "Tilts" the players head
FadeRadialBlurTo(0.4, 1);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}
void Faint(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("sound", "react_sigh1.snt", "Faint", 0.0, false);
FadePlayerRollTo(65, 100, 100); //Rotates the position of the camera on the player's body.
//afX - angle of rotation of head, positive being counter-clockwise
//afSpeedMul - speed (possibly acceleration) multiplier of the rotation (default 1, which is really slow)
//afMaxSpeed - maximum speed of rotation
SetPlayerCrouching(true);
SetPlayerActive(false);
FadeImageTrailTo(3, 1);
FadeOut(5.0f);
AddTimer("fadeout", 5.5f, "TimerChangeMap");
//Applies the image trail effect to the screen.
//afAmount - intensity (default: 0)
//afSpeed - time in seconds until full effect
FadeRadialBlurTo(0.4, 1);
//Applies radial blur effects to the screen.
//afSize - intensity (default: 0)
//afSpeed - time in seconds until full effect
}
As you can see, FadeToImageTrail, FadeIn/Out, SepiaColor and RadialBlur are the screen effects in use.
The commands i've tried so far without luck are:
FadeRadialBlurTo(0, 0);
FadeImageTrailTo(0, 0);
ChangePlayerStateToNormal();
Again, I hope you know how to fix it!
Thanks in advance,
Alex