Env credits: Difference between revisions
Jump to navigation
Jump to search
Important:The game will crash if an env_credits is attempted to be used without a registered
mNo edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
{{note|In {{l4ds}}, this entity is drastically different and has ''nothing'' except one input; <code>Start</code>.}} | {{note|In {{l4ds}}, this entity is drastically different and has ''nothing'' except one input; <code>Start</code>.}} | ||
{{ | {{Important|The game will crash if an env_credits is attempted to be used without a registered <code>scripts/credits.txt</code> file.}} | ||
:{{todo|Which games suffer from this other than {{tf2}}?}} | :{{todo|Which games suffer from this other than {{tf2}}?}} | ||
Line 23: | Line 23: | ||
# <code>scripts/credits[[.txt]]</code> | # <code>scripts/credits[[.txt]]</code> | ||
[[Category:GUI Entities]] | [[Category:GUI Entities|env_credits]] | ||
[[Category:Plain text files]] | [[Category:Plain text files|credits.txt]] |
Revision as of 03:24, 14 June 2023
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.

scripts/credits.txt
file.Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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
)
- Start rolling credits.
Outputs
- OnCreditsDone
- Fired when the credits having finished rolling.
Files
scripts/credits.txt