Portal 2 vote page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{otherlang2
|title=Portal 2 vote page
|ru=Portal 2 vote page:ru
}}
Vote page/screen is a page where you evaluate the test chamber you had played from workshop. There you can visit author's page, comment and rate the test chamber.
Vote page/screen is a page where you evaluate the test chamber you had played from workshop. There you can visit author's page, comment and rate the test chamber.



Revision as of 05:31, 3 December 2014

Template:Otherlang2 Vote page/screen is a page where you evaluate the test chamber you had played from workshop. There you can visit author's page, comment and rate the test chamber.

To make the vote screen appear, you will need to use either triggers or buttons (cube/ball/normal). In other words, you need something to activate it.

With buttons

  1. Place a prop_button, using the entity tool.
  2. Place a func_instance, using an entity tool aswell and go to its properties. Use the following settings:
Property Value
Fix Up Name pti_ents
VMF Filename instances/p2editor/global_pti_ents.vmf

3. In prop_button's properties, go to Outputs tab and Add the following:

My Output Target Entity Target Input Delay Only Once
OnPressed pti_ents instance:@relay_pti_level_end;Trigger 0.00 Yes
If you want to make it a floor button, then just put a prop_floor_button instead of prop_button

With triggers

  1. Create a trigger brush with the block tool and tie it to a trigger_once.
  2. Repeat step 2
  3. Repeat step 3, but change "OnPressed" to "OnStartTouch"

Because most maps will end with an elevator, placing this trigger somewhere in the exit elevator's shaft works well.