s&box
RustCounter-Strike 2s&boxDeadlock
Wiki
Get s&box on Steam
Browse
OverviewGetting StartedCreating GamesEngine & ToolsDocumentationCommunity GamesResources
s&boxDocumentationActiongraphCustom NodesAction Resources
SOURCE 2 · C#
Build and play games with s&box.

Facepunch's game engine and creation platform — make games in C#, or jump straight into community games.

Get s&box on Steam

s&box Wiki

  • Overview
  • Getting Started
  • Creating Games
  • Engine & Tools
  • Documentation
  • Community Games
  • Resources

Tools & Community

  • Getting Started
  • Creating Games
  • Engine & Tools
  • Resources

Platforms

  • RustBattle
  • CSBattle
  • Rust Game Wiki
  • CS2 Skins Wiki
  • Deadlock Wiki

About

  • Official Site
  • Developer Wiki
  • GitHub
  • Get on Steam
NOT AFFILIATED WITH FACEPUNCH STUDIOS · © 2026 s&box Wiki (community)
Docs/ActionGraph
ActionGraph

Action Resources

You can create your own nodes by making a .action game resource.

First select a bunch of nodes that do whatever you want your new node to do, then right-click and select Create Custom Node…

Creating a new custom node from an existing graph.

The button won't appear if it's not possible to split the selected nodes from the current graph, for example if you've selected the root node.

You'll then get a dialog to save your new node to a file.

Custom node file creation dialog.

After clicking Save, you'll see the selected nodes have been replaced by a new single node with the name you chose.

The graph from before, but with a new Jump node replacing the selection.

You can double-click on a custom node to open it in the editor. You'll see a root node was created for you, and if your selection had any out-going links there will be an output node too.

Inside the custom Jump node.

Source: Facepunch/sbox-docs (CC-BY-4.0) · updated 2024-01-23. Read it rendered on the official docs.

More in ActionGraph

ActionGraph
C# Method Nodes
Component Actions
Custom Nodes
Examples
Getting Started
Using With C#
Variables
← All documentation

Community wiki — not affiliated with Facepunch Studios. For the latest and most authoritative information, see the official developer wiki.