Switch (Portal 2)

From Valve Developer Community
Revision as of 14:46, 16 May 2011 by Super200 (talk | contribs) (moved Button (Portal 2) to Switch (Portal 2): The "Button and Cube" page links to this.)
Jump to navigation Jump to search

Template:Otherlang2

The pillar style button

The tall, red, player activated buttons used in Portal 2 are very simple to create. The button is used to as a trigger for doors and many other entities in the game.

Creation

Firstly place a prop_button entity on the ground and position it where you want it. Add your desired outputs to it; it works just the same as the func_button entity so it should be familiar to you.