Env credits

From Valve Developer Community
Jump to navigation Jump to search
English (en)Русский (ru)中文 (zh)Translate (Translate)
Env credits.png

Template:Base point This entity is used to control the rolling credits. The credits text that's displayed is determined inside the file scripts/credits.txt see that file for an example of how the script should be laid out.

Note.pngNote:In Left 4 Dead seriesLeft 4 Dead series, this entity is drastically different and has nothing except one input; Start.
C++ In code, it is represented by theCCreditsclass, defined in theEnvMessage.cppfile.

Bugs/Limitations

Icon-Important.pngImportant:the Team Fortress 2 Team Fortress 2 will crash if an env_credits is attempted to be used without a registered scripts/credits.txt file.
Clarify: which games suffer from this other than Team Fortress 2 Team Fortress 2?

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

RollCredits
Start the intro credits rolling.
RollOutroCredits
Start the outro credits rolling.
ShowLogo
Show logo.
Start  (in all games since Left 4 Dead)
Start rolling credits.

Outputs

OnCreditsDone
Fired when the credits having finished rolling.

Files

  1. scripts/credits.txt