env_credits

From Source Entities
Jump to navigation Jump to search

Code classes:

env_credits is a point entity present in all Source games. This entity is used to control the credits that roll at the end of the game. See scripts/credits.txt. This file holds the text that will appear.

Note: This is not used for credits at any point in L4d.pngL4d2-small.png. See env_outtro_stats.

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
creditsdoneFinds an env_credits or env_portal_credits and forces it to fire OnCreditsDone. Not required for credit sequences. Normally executed automatically.

Inputs[edit | edit source]

RollCredits
Makes the intro credits (like in d1_trainstation_01Hl2.png) begin rolling. Not available in L4d.pngL4d2-small.png.
RollOutroCredits
Makes the ending credits being rolling. Not available in L4d.pngL4d2-small.png.
ShowLogo
Show the game's logo. Not available in L4d.pngL4d2-small.png. To do: Where is that logo file stored?
SetLogoLength (Not in FGD) <float>
Sets how long the logo appears for. Not available in L4d.pngL4d2-small.png.
Start (Not in FGD)  (only available in L4d.pngL4d2-small.png)
To do: Description.

Outputs[edit | edit source]

OnCreditsDone
Fires when the credits are finished rolling. Not available in L4d.pngL4d2-small.png.

See Also[edit | edit source]