内容纲要

方法一:

How to create slowmotion, stopping time? – Programming & Scripting / Blueprint – Unreal Engine Forums

Hey Ace,

Give this a shot:

Set Bullet Time In UE(Slow Time)插图

You can set the global time and then specify a custom time for other actors (in my case I just did it for the player while everything else is slowed down, player runs at normal speed). You should be able to play with this to achieve what you are after.

方法二:这种更像是全局的设置

Project Bullet Time (from scratch) – Programming & Scripting / C++ – Unreal Engine Forums

Ok first part is easier than I thought. I set the keybinding with the following code



if(!bIsBulletTime)
    {
        GetWorld()->GetWorldSettings()->SetTimeDilation(0.20f);
        bIsBulletTime = true;
    }
    else
    {
        GetWorld()->GetWorldSettings()->SetTimeDilation(1.0f);
        bIsBulletTime = false;
    }


and it works like a charm. Resulting gameplay https://www.youtube.com/watch?v=rD8HvHuXDs0 13

Next is multiplayer implementation.

最后修改日期: 2022年9月6日

作者