Env portal credits: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
m (Substituted IO templates)
Line 15: Line 15:


== Inputs ==
== Inputs ==
{{IO|RollCredits|Start the intro credits rolling.}}
{{I|RollCredits|Start the intro credits rolling.}}
{{IO|RollOutroCredits|Start the outro credits rolling.}}
{{I|RollOutroCredits|Start the outro credits rolling.}}
{{IO|ShowLogo|Show the HL2 logo.}}
{{I|ShowLogo|Show the HL2 logo.}}
{{IO|RollPortalOutroCredits|Start the Portal greenscreen outro credits.}}
{{I|RollPortalOutroCredits|Start the Portal greenscreen outro credits.}}
{{I Targetname}}
{{I Targetname}}


== Outputs ==
== Outputs ==
{{IO|OnCreditsDone|Fired when the credits having finished rolling.}}
{{O|OnCreditsDone|Fired when the credits having finished rolling.}}
{{O Targetname}}
{{O Targetname}}

Revision as of 23:02, 20 April 2025

env_portal_credits is a point entity available in Portal series Portal series. This entity controls the rolling credits for Portal and Portal 2. 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 credits, they will turn into regular HL2 style credits. Portal 2 fixes this, but the credits will still restart and desync with the song.  [todo tested in ?]
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 HL2 logo.
RollPortalOutroCredits
Start the Portal greenscreen outro credits.


Outputs

OnCreditsDone
Fired when the credits having finished rolling.