Ending a Portal map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


<div style='clear:both'>
<div style='clear:both'>
===Trigger===
===Entities===
<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".</div></div>
<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". (It is recommended to put them near the trigger just for convenience.)</div></div>




<div style='clear:both'>
<div style='clear:both'>
===Entities===
===Trigger===
<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". (It is recommended to put them near the trigger just for convenience.)</div></div>
<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".</div></div>




Line 28: Line 28:




===Logic===
===Theory===
<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>
<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]]

Revision as of 03:41, 21 June 2009

Initially made by "Thousandth Beam"

Introduction

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


Entities

Make two entities. Make a "point_clientcommand" and call it "end_disconnect". Make a "env_fade" and call it "end_fade". (It is recommended to put them near the trigger just for convenience.)


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 "func_triggeronce".


Trigger's outputs

Make the trigger'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