Ending a Portal map: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | m (Undo revision 488424 by EnderActually (talk) due to lack of me reading.) Tag: Undo | ||
| (15 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
| {{DISPLAYTITLE: Portal - Tutorial - Ending a Portal Map}} | |||
| {{back | Portal Level Creation}} | |||
| {{lang|Ending_a_Portal_map}} | |||
| == Introduction == | == 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=== | ===Trigger's outputs=== | ||
| Make the trigger_once's outputs the following: | |||
| {| class=standard-table | {| class=standard-table | ||
| ! || Output named || Target entities || Via this input || Parameter || Delay | ! || Output named || Target entities || Via this input || Parameter || Delay | ||
| |- | |- | ||
| |[[ | |[[File:Io11.png]] || OnTrigger || end_fade || Fade ||   || 0.00 | ||
| |- | |- | ||
| |[[ | |[[File: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 == | == See also == | ||
| * [[Portal Level Creation]] | * [[Portal Level Creation]] | ||
| [[Category:Portal]] | [[Category:Portal]] | ||
| [[Category: | [[Category:Level Design]] | ||
| [[Category:Tutorials]] | |||
Latest revision as of 17:03, 11 September 2025
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 | |
|---|---|---|---|---|---|
|  | OnTrigger | end_fade | Fade | 0.00 | |
|  | 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.

























