API ReferenceGE Extensionsflowgraphnodesenvironment
Pause Game
- **File:** `extensions/flowgraph/nodes/environment/pauseGame.lua`
Overview
- File:
extensions/flowgraph/nodes/environment/pauseGame.lua - Name:
Pause Game - Category:
once_p_duration - Icon:
pause - Author: BeamNG
- Description: Pauses or unpauses the game simulation.
Pin Schema
Input Pins
| Name | Type | Description |
|---|---|---|
value | bool | If the game should be paused (true) or unpaused (false). |
Output Pins
None.
Behavior
- _executionStarted(): Initializes internal
_pauseGameflag tofalse. - workOnce(): Sets
_pauseGameflag totrue, indicating pause should be applied. - _afterTrigger(): If
_pauseGameis set and the current pause state differs, callssimTimeAuthority.pause()to toggle. Then resets the flag.
Notes
- Uses deferred execution via
_afterTrigger()to avoid pausing mid-frame. - This pauses the game simulation (physics, time), not the flowgraph project.
- The
once_p_durationcategory means it triggers once and has persistent duration behavior.
Tags
#flowgraph #node #ge #environment #pause #simulation
Additional Exports
-
name-string- (see source) -
description-string- (see source) -
color-any- (see source) -
icon-string- (see source) -
author-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