report_entities
report_entities
is a console command available in all Source games. It prints a list in the console of every entity currently used in a map. It will also show information such as edicts, targetnames, and quantity (varies by game).
Example input and output from Half-Life 2:
] report_entities Class: ai_hint (2) Class: ai_network (1) Class: ai_relationship (1) Class: beam (4) Class: bodyque (4) Class: env_soundscape (1) Class: env_sprite (3) Class: env_zoom (1) Class: func_brush (2) Class: func_rotating (1) Class: info_player_start (2) Class: info_target (1) Class: keyframe_rope (2) Class: move_rope (2) Class: npc_combine_s (1) Class: npc_cscanner (3) Class: npc_stalker (1) Class: player (1) Class: player_manager (1) Class: point_spotlight (3) Class: point_viewcontrol (1) Class: prop_dynamic (8) Class: scene_manager (1) Class: scripted_sequence (1) Class: soundent (1) Class: spotlight_end (4) Class: viewmodel (1) Class: weapon_smg1 (1) Class: worldspawn (1) Total 56 entities (0 empty, 54 edicts)
Example input and output from Portal 2:
] report_entities ( 1) [edict] Class: ai_network ( 13) [edict] Class: ambient_generic ( 4) [edict] Class: bodyque ( 2) [edict] Class: cube_rotationcontroller ( 1) Class: env_fade ( 19) [edict] Class: env_fog_controller ( 5) [edict] Class: env_portal_laser ( 2) [edict] Class: env_projectedtexture ( 11) Class: env_soundscape ( 1) [edict] Class: env_sprite ( 3) [edict] Class: env_texturetoggle ( 1) [edict] Class: env_tonemap_controller ( 2) Class: filter_activator_class ( 1) [edict] Class: fizzler_multiorigin_sound_player ( 2) [edict] Class: func_areaportalwindow ( 11) [edict] Class: func_brush ( 2) [edict] Class: func_clip_vphysics ( 4) [edict] Class: func_instance_io_proxy ( 15) [edict] Class: func_portal_bumper ( 2) [edict] Class: func_tracktrain ( 3) [edict] Class: game_text ( 1) [edict] Class: generic_actor ( 1) [edict] Class: info_landmark_entry ( 1) [edict] Class: info_landmark_exit ( 15) [edict] Class: info_overlay_accessor ( 6) [edict] Class: info_placement_helper ( 1) [edict] Class: info_player_start ( 6) [edict] Class: info_target ( 1) [edict] Class: info_teleport_destination ( 1) [edict] Class: light_spot ( 1) [edict] Class: logic_auto ( 1) Class: logic_autosave ( 7) Class: logic_branch ( 3) Class: logic_branch_listener ( 135) [edict] Class: logic_choreographed_scene ( 46) Class: logic_relay ( 4) [edict] Class: logic_script ( 1) [edict] Class: npc_security_camera ( 16) [edict] Class: path_track ( 16) [edict] Class: phys_bone_follower ( 2) [edict] Class: physicsclonearea ( 1) [edict] Class: player ( 1) [edict] Class: player_manager ( 1) [edict] Class: point_changelevel ( 2) [edict] Class: point_clientcommand ( 3) [edict] Class: point_laser_target ( 1) [edict] Class: point_servercommand ( 2) [edict] Class: point_teleport ( 1) Class: point_template ( 1) [edict] Class: portal_stats_controller ( 2) [edict] Class: portalsimulator_collisionentity ( 54) [edict] Class: prop_dynamic ( 3) [edict] Class: prop_laser_catcher ( 2) [edict] Class: prop_portal ( 2) [edict] Class: prop_testchamber_door ( 2) [edict] Class: prop_weighted_cube ( 1) [edict] Class: scene_manager ( 1) [edict] Class: shadow_control ( 1) [edict] Class: soundent ( 2) [edict] Class: trigger_multiple ( 7) [edict] Class: trigger_once ( 1) [edict] Class: trigger_portal_cleanser ( 1) [edict] Class: trigger_teleport ( 1) [edict] Class: trigger_transition ( 47) [edict] Class: vgui_movie_display ( 48) [edict] Class: vgui_screen ( 1) [edict] Class: viewmodel ( 1) [edict] Class: weapon_portalgun ( 1) [EDICT] Class: worldspawn Total 561 entities (0 empty, 489 edicts)