Learn

Chapter 02 References & Essential Nodes

#019 Select Node

Walk speed or sprint speed: one Set node, no Branch.

  • 0:55 video
  • Written lesson
  • Beginner
Video lesson: Select Node, 0:55

How Select works

Select is a pure node: no exec pins, just options and an Index. The Index picks which option leaves through Return Value: Index 0 returns Option 0. Right-click the node to add more options.

  • Connect a Boolean to Index, and the pins become False and True.
  • An Enum gives one pin per entry.

Example: walk or sprint

Plug Is Sprinting into the Index. False is 600, True is 1000. Return Value feeds Max Walk Speed in a single Set node. Call this event whenever Is Sprinting changes.

Select vs Branch

Branch decides which code runs. Select decides which value you get. With Branch, you would need two Set nodes doing almost the same thing.

The catch

Select can evaluate every connected option, not just the one it returns. If an option is expensive or changes something, use a Branch instead.

In short

Branch picks the path. Select picks the value.

Covered in this lesson

  • Select
  • Index
  • Return Value
  • Enum
  • Max Walk Speed
  • Branch

Newsletter

Development updates are coming to your inbox.

The newsletter opens soon. Until then, new lessons, tools and Beach Hunters progress appear first on our channels, linked below.