This article's documentation is for anything that uses the Source engine. Click here for more information.

env_screeneffect

From Valve Developer Community
Jump to: navigation, search
English (en)
... Icon-Important.png
class hierarchy
CEnvScreenEffect defined in env_screenoverlay.cpp
CPointEntity
CBaseEntity

env_screeneffect is a point entity available in all Source Source games. It allows screenspace effects to be played on the player's view.

Icon-Bug.pngBug:Does not function in Team Fortress 2Portal 2.
Icon-Bug.pngBug:Causes a memory leak in Left 4 Dead 2 by spamming garbage data to the console, do not use this entity for that game!

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Effect Type (type) <choices>
Which effect to use.
  • 0: Advisor Stun
  • 1: Intro Blur
  • 2: Groggy Vision

Inputs

StartEffect <float>
Start the effect with the duration in seconds as the passed parameter.
StopEffect <float>
Fade out the effect over the duration in seconds as the passed parameter.