Scripting Basics and UI
Topics about the basics of what Scripting and the Node Graph is in Halo Infinite, and how to use its features.
Last updated
Topics about the basics of what Scripting and the Node Graph is in Halo Infinite, and how to use its features.
Last updated
This section will teach you what Scripting means in Halo Infinite, and how to use the Node Graph interface to create scripts.
Scripting in Halo Infinite is done in the form of visual programming via a node graph interface within a Script Brain or a Mode Brain object. To spawn in a Script Brain, go into Test Mode in Forge and follow these steps based on your input type:
Option 1:
Press N
to spawn a Script Brain and open it automatically
Option 2:
Spawn the Script Brain from the Object Browser from Gameplay
-> Scripting
-> Script Brain
With the Script Brain selected, Hold Q
to open the Tools Menu and select the top option: "Node Graph"
Now you should have the node graph open, which is the interface where scripts can be built in with the help of Nodes. Connecting these nodes together creates circuits, which is the equivalent of writing code in visual programming.
Visual programming systems function similarly to flow charts. A node graph is the place, interface, and document where circuits are defined via placing and connecting nodes. Each Script Brain you place in Forge will have its own node graph that will allow you to place up to 128 nodes and make up to 512 connections.
Additional brains can be placed to allow for placing more nodes, but each brain will have that same limit. When opening the node graph interface, the graph connected to the last selected Script Brain will be the one that opens.
NodesConnection PinsIn Forge, there are multiple 'modes' that can be accessed. By default, the user is in Edit Mode and the player model is a Forge Monitor. Users can take control of a spartan biped at their current location in Edit Mode by transitioning to Test Mode, but this will not build the node graph for the level nor execute code from it.
To test scripting in Forge, the user must enter Play Mode, which spawns the player in at a proper spawn point and simulates a play session. Some code, notably anything to do with FFA Affiliations, must be tested in Customs.
Okom Captain Punch