NPC: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Link to list)
(→‎See also: not all npcs inherit the NPC base classes)
 
(29 intermediate revisions by 20 users not shown)
Line 1: Line 1:
An [[NPC]] is a '''Non-Player Character'''. This is usually an [[entity]] with some form of AI that may be able to move around the map, attack with weapons, etc., that is not directly controlled by the player. For example, [[npc_combine_s|Combine soldiers]] in [[Half-Life 2]] or [[hostage_entity|hostages]] in [[CS:S]].
{{LanguageBar}}
An [[NPC]] is a '''N'''on-'''P'''layer '''C'''haracter. It is an [[entity]] with some form of AI that may be able to move around the map, attack with weapons, etc., that is not directly controlled by the player. Examples include [[npc_combine_s|Combine soldiers]] in {{hl2|4.1}} and [[hostage_entity|hostages]] in {{css|4.1}}.


There is a list of [[:Category:NPCs|NPCs]].
NPCs are sometimes referred to as [[monster]]s (especially in {{goldsrc|4.1}}), a terminology inherited from {{quake|4.1}}.


[[Category: Glossary]]
Multiplayer [[bot]]s are not considered NPCs, as they are [[player]]s.
 
== See also ==
* [[Creating an NPC]]
* [[:Category:NPCs|List of NPCs]]
* [[Bot]]
* <code>[[CAI_BaseNPC]]</code>, the C++ BaseClass in Source from which NPCs traditionally inherit
* <code>[[CBaseMonster (GoldSrc)|CBaseMonster]]</code>, the C++ BaseClass in GoldSrc from which NPCs traditionally inherit
 
[[Category:Source]]
[[Category:NPCs]]
[[Category:Glossary]]

Latest revision as of 14:35, 8 May 2025

English (en)Deutsch (de)Português do Brasil (pt-br)Русский (ru)中文 (zh)Translate (Translate)

An NPC is a Non-Player Character. It is an entity with some form of AI that may be able to move around the map, attack with weapons, etc., that is not directly controlled by the player. Examples include Combine soldiers in Half-Life 2 Half-Life 2 and hostages in Counter-Strike: Source Counter-Strike: Source.

NPCs are sometimes referred to as monsters (especially in GoldSrc GoldSrc), a terminology inherited from Quake Quake.

Multiplayer bots are not considered NPCs, as they are players.

See also