Justified
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)

CommandDefaultDescription
npc_ally_deathmessage1-
npc_alyx_crouch1-
npc_alyx_force_stop_moving1-
npc_alyx_readiness1-
npc_alyx_readiness_transitions1-
npc_ammo_depletecmdSubtracts half of the target's ammo
npc_barnacle_swallow0Use prototype swallow code.
npc_bipasscmdDisplays the local movement attempts by the given NPC(s) (triangulation detours). Failed bypass ...
npc_citizen_auto_player_squad1-
npc_citizen_auto_player_squad_allow_use0-
npc_citizen_dont_precache_all1-
npc_citizen_explosive_resist0-
npc_citizen_heal_chuck_medkit1Set to 1 to use new experimental healthkit-throwing medic.
npc_citizen_insignia0-
npc_citizen_medic_emit_sound1-
npc_citizen_medic_throw_speed650-
npc_citizen_medic_throw_style1Set to 0 for a lobbier trajectory
npc_citizen_squad_marker0-
npc_combatcmdDisplays text debugging information about the squad and enemy of the selected NPC (See Overlay T...
npc_conditionscmdDisplays all the current AI conditions that an NPC has in the overlay text. Arguments: {npc_...
npc_createcmdCreates an NPC of the given type where the player is looking (if the given NPC can actually stand...
npc_create_aimedcmdCreates an NPC aimed away from the player of the given type where the player is looking (if the g...
npc_create_equipment0-
npc_destroycmdRemoves the given NPC(s) from the universe Arguments: {npc_name} / {npc_class_name} / no a...
npc_destroy_unselectedcmdRemoves all NPCs from the universe that aren't currently selected
npc_enemiescmdShows memory of NPC. Draws an X on top of each memory. Eluded entities drawn in blue (don't kno...
npc_focuscmdDisplays red line to NPC's enemy (if has one) and blue line to NPC's target entity (if has one) ...
npc_freezecmdSelected NPC(s) will freeze in place (or unfreeze). If there are no selected NPCs, uses the NPC u...
npc_freeze_unselectedcmdFreeze all NPCs not selected
npc_gocmdSelected NPC(s) will go to the location that the player is looking (shown with a purple box) Arg...
npc_go_do_run1Set whether should run on NPC go
npc_go_randomcmdSends all selected NPC(s) to a random node. Arguments: -none-
npc_healcmdHeals the target back to full health
npc_height_adjust1Enable test mode for ik height adjustment
npc_killcmdKills the given NPC(s) Arguments: {npc_name} / {npc_class_name} / no argument picks what p...
npc_nearestcmdDraw's a while box around the NPC(s) nearest node Arguments: {entity_name} / {class_name}...
npc_relationshipscmdDisplays the relationships between this NPC and all others. Arguments: {entity_name} / {cl...
npc_resetcmdReloads schedules for all NPC's from their script files Arguments: -none-
npc_routecmdDisplays the current route of the given NPC as a line on the screen. Waypoints along the route a...
npc_selectcmdSelect or deselects the given NPC(s) for later manipulation. Selected NPC's are shown surrounded...
npc_sentences0-
npc_squadscmdObsolete. Replaced by npc_combat
npc_steeringcmdDisplays the steering obstructions of the NPC (used to perform local avoidance) Arguments: {...
npc_steering_allcmdDisplays the steering obstructions of all NPCs (used to perform local avoidance)
npc_strider_height_adj0-
npc_strider_shake_ropes_magnitude150-
npc_strider_shake_ropes_radius1200-
npc_task_textcmdOutputs text debugging information to the console about the all the tasks + break conditions of t...
npc_taskscmdDisplays detailed text debugging information about the all the tasks of the selected NPC current ...
npc_teleportcmdSelected NPC will teleport to the location that the player is looking (shown with a purple box) ...
npc_thinknowcmdTrigger NPC to think
npc_viewconecmdDisplays the viewcone of the NPC (where they are currently looking and what the extents of there ...
npc_vphysics0-

On this page