player

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
edit
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map.
Class hierarchy
CCSPlayer
CBaseMultiplayerPlayer
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

player is an entity available in Counter-Strike: SourceCounter-Strike: Global Offensive Counter-Strike series.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{Counter-Strike series}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Counter-Strike: SourceCounter-Strike: Global Offensive Counter-Strike series.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

The player itself or a bot. NPCs are not players. This entity still exists even if the player is dead.

Icon-Important.pngImportant:This is a preserved entity.
If the game has round restart mechanics this entity may not behave as expected:
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.

Inputs

OnRescueZoneTouch
Fired when touching a func_hostage_rescue. If the player is a CT, shows the #Hint_hostage_rescue_zone help text onscreen, if the player hasn't seen it yet that round.
Warning.pngRisk of Confusion:This is an input, despite starting with "On" (which is usually used for outputs).