Topic: Shut Off Camera Shake At The Start Of A New Round

Hello, some my attacks cause strong camera and player shakes. Sometimes these attacks causes a KO and the game is still shaking into the next round.

How can I shut off camera shake at the start of a new round.

Share

Thumbs up Thumbs down

Re: Shut Off Camera Shake At The Start Of A New Round

This might work.
You can call this method from anywhere at anytime.

    public static void MaybeStopAllUFECameraShakes()
    {
        List<ControlsScript> controlsScriptList = UFE.GetAllControlsScripts();
        if (controlsScriptList == null)
        {
            return;
        }

        int count = controlsScriptList.Count;
        for (int i = 0; i < count; i++)
        {
            if (controlsScriptList[i] == null)
            {
                continue;
            }

            controlsScriptList[i].shakeCameraDensity = 0;
        }
    }

Share

Thumbs up Thumbs down

Re: Shut Off Camera Shake At The Start Of A New Round

Thank you! I will give it a try!

Share

Thumbs up Thumbs down