API ReferenceGE Extensionsflowgraphnodesenvironment
Bullet Time
- **File:** `extensions/flowgraph/nodes/environment/setBulletTime.lua`
Overview
- File:
extensions/flowgraph/nodes/environment/setBulletTime.lua - Name:
Bullet Time - Category:
repeat_instant - Icon:
av_timer - Description: Slows down or speeds up the passage of simulation time (slow motion effect).
Pin Schema
Input Pins
| Name | Type | Description |
|---|---|---|
instant | bool | If true, time scale changes instantly. Otherwise it ramps gradually. Hidden. |
value | number | Time scale factor (0–1). 0 pauses the game, 1 is normal speed. Slider. |
Output Pins
None.
Behavior
- work(): When flow is active:
- If
valueis 0, callssimTimeAuthority.pause(true)to pause. - Otherwise, sets time scale via
simTimeAuthority.setInstant()(if instant) orsimTimeAuthority.set()(for gradual ramp), then unpauses.
- If
- _executionStopped(): Resets time scale to
1(normal speed) viasimTimeAuthority.set(1).
Notes
- The
valuepin has a slider gizmo configured for 0–1 float range. - Cleanup on stop ensures the game returns to normal speed when the flowgraph ends.
- The gradual ramp mode (default) provides a cinematic slow-motion transition.
Tags
#flowgraph #node #ge #environment #bullettime #slowmo #simulation
Additional Exports
postInit()
-
name-string- (see source) -
icon-string- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- Directional Gravity - Related reference
- Get Cloud by ID - Related reference
- Get Fog - Related reference
- FlowGraph Guide - Guide