env_portal_credits

From Valve Developer Community
Revision as of 09:35, 2 June 2025 by Le Glaconus (talk | contribs) (additional info)
Jump to navigation Jump to search

env_portal_credits is a point entity available in Portal series Portal series. This entity controls the rolling credits for the Portal series Portal series. All of the credits data, including the names and song lyrics, is read from the file scripts/credits.txt.

Icon-Bug.pngBug:If a save is reloaded during the Portal Portal credits, they will turn into regular Half-Life 2 HL2 style credits. Portal 2 Portal 2 fixes this, but the credits will still restart and desync with the song.
env_portal_credits
Env portal credits.png
TypePoint entity
EngineSource Source
AvailabilityPortalPortal 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 the Half-Life 2 HL2 logo.
RollPortalOutroCredits
Start the Portal greenscreen outro credits.
SetLogoLength  !FGD
Meant to be used with ShowLogo, it sets the duration for the logo to stay on the screen. It will also show the Half-Life 2 HL2 logo on top of the Half-Life 2: Episode One Episode One logo.


Outputs

OnCreditsDone
Fired when the credits having finished rolling.