Storm Game Framework 2.0.0
User guide
Loading...
Searching...
No Matches
Local time effects modules

TimeStop and its movement, ability and AI integrations.

A TimeStop effect slows or stops time for the actors it targets while the rest of the world carries on. Each effect profile selects one or more domains: Movement, Animation, AI, AbilityTimers and Physics. In this version, the Physics domain does not work, so any request that requires it is refused. See SGFTimeStopPhysics.

Back to the module index.

SGFTimeStop

SGFTimeStop applies a time effect to an actor that has opted in, while the rest of the world continues.

Try it. Give a test actor a Storm Time Stop Participant component and create a Storm Time Stop Effect Profile that selects the domains you want, such as Movement and Animation. Apply the effect briefly and check that the actor resumes when it ends.

Effects are requested on the authority, which is the server in multiplayer or the only machine in standalone play. Other machines follow the server's clock and report the effect's status. See Multiplayer and networking.

C++ entry point. Add SGFTimeStop to your consuming module and include TimeStop/StormTimeStopSubsystem.h. See StormTimeStopSubsystem.h.

Pass the handle returned by ApplyEffect to read the effect's state on this machine.

TimeStop.GetEffectStatus(EffectHandle)

SGFTimeStopAbilities

This makes supported Unreal Gameplay Ability System timers respond to a local time effect.

Try it. Use its TimeStop ability system component in a project using standard Unreal abilities. Use Wait Domain Delay for ability waits that should follow the effect, and check that a timer resumes after release.

C++ entry point. Add SGFTimeStopAbilities to your consuming module and include TimeStop/Abilities/StormTimeStopAbilitySystemComponent.h. See StormTimeStopAbilitySystemComponent.h.

SGFTimeStopStormAbilities

This connects the TimeStop timer support to characters that use StormAbilities.

Try it. Choose the StormAbilities version of the TimeStop ability system component in your character setup. Grant one ability and check its cooldown during and after a short time effect.

C++ entry point. Add SGFTimeStopStormAbilities to your consuming module and include TimeStop/Abilities/StormTimeStopStormAbilitySystemComponent.h. See StormTimeStopStormAbilitySystemComponent.h.

SGFTimeStopEngineAI

This brings local time effects to supported Unreal behaviour trees, path following and perception.

Try it. Opt in through your native AI controller setup and use the TimeStop-aware timing nodes for the waits you want to control. Check that movement and a timed decision resume after release.

C++ entry point. Add SGFTimeStopEngineAI to your consuming module and include TimeStop/EngineAI/StormTimeStopEngineAISubsystem.h. See StormTimeStopEngineAISubsystem.h.

SGFTimeStopSgfAI

This brings time effects to SGF AI states, action selection, sensing and threat.

Try it. Use the TimeStop-aware versions of the SGF AI components for the features your NPC uses. Compare how the NPC runs a timed action or keeps track of a threat before, during and after the effect.

C++ entry point. Add SGFTimeStopSgfAI to your consuming module and include TimeStop/SgfAI/StormTimeStopAIComponent.h. See StormTimeStopAIComponent.h.

SGFTimeStopPhysics

This module holds the settings and types for the TimeStop Physics domain. The Physics domain is not functional in this version. Its world subsystem is never created and holds or slows no physics bodies.

The TimeStop service refuses any request that requires the Physics domain, with the reason DomainUnsupported. That includes a profile that selects every domain. Choose Movement, Animation, AI or AbilityTimers instead.

C++ entry point. The header TimeStop/Physics/StormTimeStopPhysicsSettings.h declares the TimeStop Physics project settings. See StormTimeStopPhysicsSettings.h. In this version the domain does not read them.

SGFTimeStopPhysicsEditor

This is the editor module for the TimeStop Physics domain. It contains no tools in this version.