Point changelevel: 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.)
No edit summary
Line 1: Line 1:
{{lang|point_changelevel}}{{back|Level Transitions}}  
{{LanguageBar}}
{{back|Level Transitions}}  
{{this is a|point entity|game=Portal 2|name=point_changelevel}} Used to make an easy, one-way map transition. If no landmarks are present in the map, the player will spawn at the [[info_player_start]] in the destination map.
{{this is a|point entity|game=Portal 2|name=point_changelevel}} Used to make an easy, one-way map transition. If no landmarks are present in the map, the player will spawn at the [[info_player_start]] in the destination map.


Line 7: Line 8:


==Keyvalues==
==Keyvalues==
{{KV BaseEntity|l4d2=1}}
{{KV Targetname}}


==Inputs==
==Inputs==
{{IO|ChangeLevel|Changes the level to the map name supplied as a parameter.|param=string}}
{{I|ChangeLevel|Changes the level to the map name supplied as a parameter.|param=string}}
{{IO|ChangeLevelPostFade|Changes the level instantly, without fading out.|param=string|nofgd=1}}
{{I|ChangeLevelPostFade|Changes the level instantly, without fading out.|param=string|nofgd=1}}
{{I BaseEntity|l4d2=1}}


==Outputs==
==Outputs==
{{IO|OnChangeLevel|Fired when the level is about to change.}}
{{O|OnChangeLevel|Fired when the level is about to change.}}
{{O BaseEntity}}


== See also ==
== See also ==

Revision as of 15:07, 25 September 2024

English (en)Translate (Translate)
Level Transitions

point_changelevel is a point entity available in Portal 2 Portal 2. Used to make an easy, one-way map transition. If no landmarks are present in the map, the player will spawn at the info_player_start in the destination map.

However, if the current map contains an info_landmark_exit and the destination map contains an info_landmark_entry, the player's offset relative to the exit landmark will be applied relative to the entry landmark in the next map. Effectively, this makes the entity behave more like a trigger_changelevel. This will also cause all entities to transition over; to limit what entities this applies to, use a trigger_transition. In the Portal 2 campaign, this is positioned in such a way that no entities are ever inside it.

Note.pngNote:The map does not transition instantly; an automatic 0.5 second fade to black is applied first. Use ChangeLevelPostFade instead if you want to transition instantly.

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

ChangeLevel <stringRedirectInput/string>
Changes the level to the map name supplied as a parameter.
ChangeLevelPostFade <stringRedirectInput/string> !FGD
Changes the level instantly, without fading out.

Outputs

OnChangeLevel
Fired when the level is about to change.

See also