skip to content

As AI lead, how do you decide where NPCs may cheat with knowledge they could not have sensed, and where perception must stay honest?

level: principalimportance: should knowfreq 35%

answer

  1. fairness as players perceive it
  2. first detection is sacred
  3. small invisible cheats help
  4. one channel for every cheat
  5. difficulty scales senses, not knowledge

basics

~20 s

Keep perception honest wherever players can test it, above all first detection in stealth; allow only cheats players cannot see that make NPCs look smarter, like briefly tracking a target after losing sight, each declared in one reviewed place.

solid answer

~50 s

The criterion is **fairness as the player perceives it**, not simulation purity. Players test detection constantly, so the moment an NPC first notices someone must follow rules the player can learn: cone, light, noise. Once a fight is on, small cheats that the player cannot see, such as tracking the true position for a second after losing sight, or knowing roughly where a player who just shot it is, make NPCs look competent rather than unfair. A strategy opponent that ignores fog of war is a difficulty choice and should be labelled as one. To make the line enforceable, decision code reads only the perception layer and memory, every cheat is an explicit named input in that layer with a debug view, and harder difficulty sharpens senses instead of granting knowledge. Playtest reports of being seen through walls are tracked as defects against that standard.

go deeper

for a junior

Recall the difference between honest perception, limited to what the NPC sensed, and omniscient knowledge read straight from the game world.

for a middle

Explain which moments players test most, and give examples of cheats that read as competence and cheats that read as unfair.

for a senior

Trace a report of being seen through walls to either a perception bug or an undeclared world read, using debug views of what the NPC knew.

for a principal

Set the studio rule: where honesty is mandatory, which cheats are allowed and how they are declared, and how difficulty scales senses rather than knowledge.

## The decision Game AI normally has access to the true state of the world, because it runs alongside the simulation. **Honest perception** limits each NPC to what its senses and memory could plausibly hold; **omniscient knowledge** lets it read the truth. Neither extreme is right for every game, so an AI lead sets a standing rule: where the line sits, by genre and by moment, and how the team keeps to it. ## What honesty costs and buys | Concern | Honest perception | Omniscient knowledge | |---|---|---| | Player trust | High when rules are readable | Collapses once noticed | | Runtime cost | Rays, memory, stimuli | Nearly free | | Tuning effort | Many parameters to balance | Few | | Debugging | Clear: what was sensed and when | Simple, but behaviour looks arbitrary | | Emergent play | Distractions, hiding, misdirection | Little to exploit | Honesty is what makes distraction and hiding work: a thrown distraction only fools a guard that does not already know where the player is. ## Where teams usually draw the line - **First detection in stealth**: honest. Players spend most of their attention testing exactly this. - **Combat continuation**: small cheats are commonly accepted, such as tracking the true position for a second or two after sight is lost, or knowing the rough direction of whoever just hit the NPC. Players read these as competence. - **Searching**: honest last known position plus plausible guesses; a guard that walks straight to a hiding spot reads as cheating. - **Strategy opponents**: ignoring fog of war or receiving bonus resources is common at higher difficulties, and is best presented openly as a difficulty setting. - **Bots in competitive modes**: as honest as possible, because players compare them with human opponents. - **Ambient characters**: whatever is cheapest, because players rarely test them. ## Making the line enforceable A standard nobody can check drifts within a project. The enforcement mechanisms are architectural: 1. **One source of truth**: decision code reads what the perception layer and memory provide, never the world directly. 2. **Explicit cheat channels**: every allowed cheat is a named, tunable input written into that layer, such as "track true position for N seconds after loss of sight", so it can be found, reviewed and switched off. 3. **Debug views**: an overlay showing what each NPC knows, from which sense and how old it is, so designers can tell a perception bug from a cheat. 4. **Review**: a new behaviour that wants extra knowledge goes through the same channel and gets a decision, not a quiet query. ## Difficulty and senses Harder settings should improve **perception quality**: wider cones, faster detection, better hearing, guards sharing what one of them saw. Granting knowledge instead, such as revealing the player to every guard when any alarm sounds, is the kind of change players tend to notice and resent. Telling the two apart is easier when both live in one layer. ## Paying for honesty Honest perception has a real runtime and tuning cost, and the lead decides how it is paid instead of letting individual features quietly fall back to reading the world: - **Perception level of detail**: distant or idle NPCs sense at a lower rate or with fewer body points, which is still honest, just coarser. - **Shared work**: one squad-level record of a target, fed by every member's senses, instead of each NPC deriving its own. - **Tooling**: the debug overlay and a table of test situations are budgeted as part of the feature, because honest systems are only tunable when designers can see them. An omniscient shortcut added under frame-budget pressure late in a project is how most hidden cheats get in. ## Signals that the line is in the wrong place - Playtest reports of being seen through walls or found in perfect hiding spots. - Players who never use distractions, because guards are not fooled by them. - Players calling NPCs stupid, which can mean they are too honest in combat and lose track of a target the moment it ducks. - Bugs that nobody can reproduce, because some behaviour reads the world directly and bypasses the perception layer.

  • Why route every cheat through the perception layer instead of letting decision code read the world?
    Because then the AI's knowledge has one place to inspect. A cheat becomes a named, tunable input with a debug view, so a designer can see that a guard knew the player's position because of the post-loss tracking window, not a bug. Scattered world reads make every behaviour suspect and every report of being seen through walls hard to reproduce.
  • How should difficulty levels change NPC perception?
    Scale the senses, not the knowledge: wider and longer vision cones, faster detection meters, longer memory, keener hearing, and allies sharing what one guard sensed. Each change still obeys the same rules the player has learned, so harder feels sharper rather than unfair.
  • When is an omniscient opponent acceptable?
    When the player cannot observe the cheat or has agreed to it: ambient characters nobody tests, a strategy opponent at a difficulty openly described as having advantages, or a short combat tracking window that reads as competence. It is not acceptable where the game's core loop, such as stealth, depends on the player outwitting the senses.

  • Honest sensing everywhere is always the better design.
  • Players never notice cheats, so omniscience costs nothing.
  • Each decision script may read world state whenever convenient.
  • Harder difficulty should mean the AI knows where the player is.
  • Cheating is only a performance shortcut, not a design decision.