Pit: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (otherlang2'd)
No edit summary
Line 2: Line 2:
|ru=Pit:ru
|ru=Pit:ru
}}
}}
'''Death pits''' are used as obstacles in [[Portal 2]] and destroy objects and players that drop into them, just like [[Shredder|shredders]] and [[slime]]. They trigger a fade to black for players that fall into them. use logic_relay to make the fade work.
'''Death pits''' are used as obstacles in [[Portal 2]] and destroy objects and players that drop into them, just like [[Shredder|shredders]] and [[slime]]. They trigger a fade to black for players that fall into them.


==Creation==
See [[sp_a4_jump_polarity]].


== Entities you need ==
[[trigger_hurt]] (using the block tool)
== Making the deadly pit ==
Take your block tool and make a block in the place you want the player's death. After that press '''[Ctrl+T]''' and make it [[trigger_hurt]]. You can see many properties but we are only going to change the "damage", "damage cap" and the "damage type".
== Final things you need to do ==
Change the number of "'''damage'''" property and put a high number (e.g '''1000'''). Do the same with "'''damage cap'''" and then choose the "'''damage type'''" property and select "FALL".
[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Tutorials]]
[[Category:Portal 2 Tutorials]]

Revision as of 14:23, 17 January 2012

Template:Otherlang2 Death pits are used as obstacles in Portal 2 and destroy objects and players that drop into them, just like shredders and slime. They trigger a fade to black for players that fall into them.


Entities you need

trigger_hurt (using the block tool)


Making the deadly pit

Take your block tool and make a block in the place you want the player's death. After that press [Ctrl+T] and make it trigger_hurt. You can see many properties but we are only going to change the "damage", "damage cap" and the "damage type".

Final things you need to do

Change the number of "damage" property and put a high number (e.g 1000). Do the same with "damage cap" and then choose the "damage type" property and select "FALL".