GmodGeneralConsole reference
NPCs
Non-player character settings and debugging.
NPCs
Non-player character settings and debugging.
This is a reference of all npc_* console commands. Use find npc in the console to search within this category.
All Commands (53)
| Command | Default | Description |
|---|---|---|
npc_ally_deathmessage | 1 | - |
npc_alyx_crouch | 1 | - |
npc_alyx_force_stop_moving | 1 | - |
npc_alyx_readiness | 1 | - |
npc_alyx_readiness_transitions | 1 | - |
npc_ammo_deplete | cmd | Subtracts half of the target's ammo |
npc_barnacle_swallow | 0 | Use prototype swallow code. |
npc_bipass | cmd | Displays the local movement attempts by the given NPC(s) (triangulation detours). Failed bypass ... |
npc_citizen_auto_player_squad | 1 | - |
npc_citizen_auto_player_squad_allow_use | 0 | - |
npc_citizen_dont_precache_all | 1 | - |
npc_citizen_explosive_resist | 0 | - |
npc_citizen_heal_chuck_medkit | 1 | Set to 1 to use new experimental healthkit-throwing medic. |
npc_citizen_insignia | 0 | - |
npc_citizen_medic_emit_sound | 1 | - |
npc_citizen_medic_throw_speed | 650 | - |
npc_citizen_medic_throw_style | 1 | Set to 0 for a lobbier trajectory |
npc_citizen_squad_marker | 0 | - |
npc_combat | cmd | Displays text debugging information about the squad and enemy of the selected NPC (See Overlay T... |
npc_conditions | cmd | Displays all the current AI conditions that an NPC has in the overlay text. Arguments: {npc_... |
npc_create | cmd | Creates an NPC of the given type where the player is looking (if the given NPC can actually stand... |
npc_create_aimed | cmd | Creates an NPC aimed away from the player of the given type where the player is looking (if the g... |
npc_create_equipment | 0 | - |
npc_destroy | cmd | Removes the given NPC(s) from the universe Arguments: {npc_name} / {npc_class_name} / no a... |
npc_destroy_unselected | cmd | Removes all NPCs from the universe that aren't currently selected |
npc_enemies | cmd | Shows memory of NPC. Draws an X on top of each memory. Eluded entities drawn in blue (don't kno... |
npc_focus | cmd | Displays red line to NPC's enemy (if has one) and blue line to NPC's target entity (if has one) ... |
npc_freeze | cmd | Selected NPC(s) will freeze in place (or unfreeze). If there are no selected NPCs, uses the NPC u... |
npc_freeze_unselected | cmd | Freeze all NPCs not selected |
npc_go | cmd | Selected NPC(s) will go to the location that the player is looking (shown with a purple box) Arg... |
npc_go_do_run | 1 | Set whether should run on NPC go |
npc_go_random | cmd | Sends all selected NPC(s) to a random node. Arguments: -none- |
npc_heal | cmd | Heals the target back to full health |
npc_height_adjust | 1 | Enable test mode for ik height adjustment |
npc_kill | cmd | Kills the given NPC(s) Arguments: {npc_name} / {npc_class_name} / no argument picks what p... |
npc_nearest | cmd | Draw's a while box around the NPC(s) nearest node Arguments: {entity_name} / {class_name}... |
npc_relationships | cmd | Displays the relationships between this NPC and all others. Arguments: {entity_name} / {cl... |
npc_reset | cmd | Reloads schedules for all NPC's from their script files Arguments: -none- |
npc_route | cmd | Displays the current route of the given NPC as a line on the screen. Waypoints along the route a... |
npc_select | cmd | Select or deselects the given NPC(s) for later manipulation. Selected NPC's are shown surrounded... |
npc_sentences | 0 | - |
npc_squads | cmd | Obsolete. Replaced by npc_combat |
npc_steering | cmd | Displays the steering obstructions of the NPC (used to perform local avoidance) Arguments: {... |
npc_steering_all | cmd | Displays the steering obstructions of all NPCs (used to perform local avoidance) |
npc_strider_height_adj | 0 | - |
npc_strider_shake_ropes_magnitude | 150 | - |
npc_strider_shake_ropes_radius | 1200 | - |
npc_task_text | cmd | Outputs text debugging information to the console about the all the tasks + break conditions of t... |
npc_tasks | cmd | Displays detailed text debugging information about the all the tasks of the selected NPC current ... |
npc_teleport | cmd | Selected NPC will teleport to the location that the player is looking (shown with a purple box) ... |
npc_thinknow | cmd | Trigger NPC to think |
npc_viewcone | cmd | Displays the viewcone of the NPC (where they are currently looking and what the extents of there ... |
npc_vphysics | 0 | - |