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.
| Key | Does |
|---|---|
| Enter | Evaluates 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 |
| Tab | Completes 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:
| Control | Does |
|---|---|
| God | Local players take no damage and don't die |
| Infinite ammo, Bottomless clip | Their weapons stay full |
| Camouflage | Active camouflage |
| Teleport to camera | The first player to where the Kit's camera last was |
| All weapons, All vehicles, All powerups | One 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.
| Overlay | Shows |
|---|---|
| Collision | What a shot or a footstep hits: a grid of the engine's own rays across the view, level in cyan, objects in orange |
| Pathfinding | The floor sectors the AI walks, around the camera, in green |
| AI actors | Every 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 threads | In 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 |
| Objects | The 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 objectives | Each objective's tasks at the middle of their areas, named, with a line to each area |
| Spawns | Player starting locations, each a figure facing its way |
| Portals, Clusters | The 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 positions | The 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.
