DocsKitReference

Console and debug drawing

Console

` or View → Console opens it, over the Kit's view and over the map while you playtest. It evaluates HaloScript in the running game with the engine's own compiler.

While the console is open, T, Y and U type into it without opening chat, and Tab completes names without opening the scoreboard. The window's shortcuts wait until you close it.

The console over the game: typed lines, their results and name completions, with cheat buttons along its top.
Lines, results and completions, with the cheats along the top.
KeyDoes
EnterEvaluates the line: a call with or without its outer brackets, such as ai_erase_all or (set cheat_deathless_player true), or several in a begin
↑ ↓Step through the lines you typed before
TabCompletes the word under the cursor. Again: the next match

Matches show under the output: the engine's functions and globals with their value types, and the map's own scripts and globals once the Scripts workspace has read them. Each value, each print, including the map's scripts', and each compile error comes back in its own color. Clear empties it.

Of the retail engine's 1,379 script functions, 954 work. The rest do nothing in a release build, mostly debug and development functions, and show dimmed as (not in this build).

Cheats

The console's header has each as a click, and each is the line it stands for:

ControlDoes
GodLocal players take no damage and don't die
Infinite ammo, Bottomless clipTheir weapons stay full
CamouflageActive camouflage
Teleport to cameraThe first player to where the Kit's camera last was
All weapons, All vehicles, All powerupsOne of each of the map's around the first player

Debug drawing

Toggle these in the viewport header's Overlays or View → Debug Drawing. They draw over the Kit's view and over the map while you playtest, through the first player's camera, except where a row says otherwise.

OverlayShows
CollisionWhat a shot or a footstep hits: a grid of the engine's own rays across the view, level in cyan, objects in orange
PathfindingThe floor sectors the AI walks, around the camera, in green
AI actorsEvery actor where it stands, by team, with its combat status. Near the camera also its squad, what it's doing (such as cover / combat), its command script, and inactive for one that doesn't think. In the view's corner, each squad's actors alive and how many of them are inactive
Script threadsIn the corner, each of the scenario's script threads: its script, how it sleeps (awake, ticks left, on a command script, dormant, done) and the expression it's at, the running ones first
ObjectsThe live objects near the camera, each labeled with its type and tag, such as weapon assault_rifle. In the corner, the engine's pools as the Scene tab's Budget names them, and the objects' memory
AI objectivesEach objective's tasks at the middle of their areas, named, with a line to each area
SpawnsPlayer starting locations, each a figure facing its way
Portals, ClustersThe level's portals, each with the numbers of the clusters on its two sides, and each cluster's bounds as a box, near the camera. The camera's own cluster is drawn thick in orange, its number at the bottom of the view. Through the Kit's camera only, not in a playtest
AI firing positionsThe zones' positions. While you playtest, those around the player

The engine's own debug drawing is left out of a release build, so the Kit draws its own.