Player

From Valve Developer Community
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

Note.pngNote:This entity is not listed in the FGD, and is not intended to be placed in a map with hammer.
Note.pngNote:Key/values, inputs and outputs vary depending on engine version. (needs more research- this stuff is from ep2)

Entity Description

The player. This entity still exists even if the player is dead.

Keyvalues

Defines the name that other entities refer to this entity by.
  • friction
  • health
The player's health.
  • max_health
The value of "health" cannot exceed this.
  • physdamagescale

Inputs

Disables the player's flashlight.
  • EnableFlashlight
Enables the player's flashlight.
  • ForceDropPhysObjects
  • SetHealth <integer>
Sets the player's health. Values clamped between 0 and max_health.
  • SetHUDVisibility
  • SetFogController
  • physdamagescale
  • KilledNPC
  • skin <integer>
Sets the model's skin.


Outputs

Fired when the entity is ignited.