Ending a Portal map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Removed "back" link at the top for consistency and edited for overall consistency with the rest of the wiki)
Line 1: Line 1:
{{Back|Portal Level Creation}}
== Introduction ==
== Introduction ==
<div style='padding-left:20px'>Using this tutorial you can end maps like on Portal's Bonus maps.</div>
Using this tutorial you can end maps like on Portal's Bonus maps.
 
 
<div style='clear:both'>
===Entities===
<div style='padding-left:20px'>Make two entities. Make a "point_clientcommand" and call it "end_disconnect". Make a "env_fade" and call it "end_fade".</div></div>
 


<div style='clear:both'>
== Trigger ==
===Trigger===
Create a brush that's the area that you want the map to end. Texture it with a "tools\toolstrigger" texture. Select it and press CTRL+T. make it a "trigger_once".
<div style='padding-left:20px'>Create a brush that's the area that you want the map to end. Texture it with a "tools\toolstrigger" texture. Select it and press CTRL+T. make it a "func_triggeronce". (It is recommended to put the entities near the trigger just for convenience.)</div></div>


== Entities ==
Make two entities. Make a "point_clientcommand" and call it "end_disconnect". Make a "env_fade" and call it "end_fade". You may want to place these entities next to the trigger_once brush for convenience.


<div style='clear:both'>
===Trigger's outputs===
===Trigger's outputs===
<div style='padding-left:20px'>Make the trigger's outputs the following:
Make the trigger_once's outputs the following:


{| class=standard-table
{| class=standard-table
Line 27: Line 19:
|}
|}


 
== Theory ==
===Theory===
When you touch the trigger the "env_fade" will make you start to fadeout. After 2 seconds, the fadeout will be complete and the "point_clientcommand" will make you return to the main menu.
<div style='padding-left:20px'>When you touch the trigger the "env_fade" will make you start to fadeout. After 2 seconds, the fadeout will be complete and the "point_clientcommand" will make you return to the main menu.</div>


== See also ==
== See also ==
* [[Portal Level Creation]]
* [[Portal Level Creation]]
* [[Creating a portal elevator]]
 
[[Category:Level Design Tutorials]]
[[Category:Portal]]

Revision as of 00:56, 29 August 2010

Introduction

Using this tutorial you can end maps like on Portal's Bonus maps.

Trigger

Create a brush that's the area that you want the map to end. Texture it with a "tools\toolstrigger" texture. Select it and press CTRL+T. make it a "trigger_once".

Entities

Make two entities. Make a "point_clientcommand" and call it "end_disconnect". Make a "env_fade" and call it "end_fade". You may want to place these entities next to the trigger_once brush for convenience.

Trigger's outputs

Make the trigger_once's outputs the following:

Output named Target entities Via this input Parameter Delay
Io11.png OnTrigger end_fade Fade 0.00
Io11.png OnTrigger end_disconnect Command disconnect 2.00

Theory

When you touch the trigger the "env_fade" will make you start to fadeout. After 2 seconds, the fadeout will be complete and the "point_clientcommand" will make you return to the main menu.

See also