API ReferenceGE Extensionscore
Forest
Utility wrapper for accessing the Forest scene object. Caches the forest object ID for efficient repeated lookups.
Utility wrapper for accessing the Forest scene object. Caches the forest object ID for efficient repeated lookups.
Public API
| Function | Signature | Description |
|---|---|---|
M.getForestObject | () → Forest|nil | Returns the first Forest object in the scene, caching its ID. Returns nil if no forest exists. |
Usage Example
local forest = core_forest.getForestObject()
if forest then
local items = forest:getData():getItems()
log('I', 'test', 'Forest has ' .. #items .. ' items')
endKey Details
- Searches via
scenetree.findClassObjects("Forest")on first call, then cachesforestId. - Cache is invalidated if the cached object no longer exists in the scenetree.
- Used by
core_dynamicPropsand other systems that need to manipulate forest items.
Flowgraph Manager
Central manager for BeamNG's visual scripting system (flowgraphs). Handles creation, loading, serialization, and per-frame execution of flowgraph manager instances.
Fun Stuff
Provides sandbox "fun" actions accessible from the radial quick-access menu: vehicle destruction, physics forces, color randomization, random vehicles, and more.