Difference between revisions of "Dropper (Portal 2)"

From Valve Developer Community
Jump to: navigation, search
(removed see also, already in category)
(Creation)
Line 5: Line 5:
 
A '''dropper''' is a puzzle element in [[Portal 2]]. Things like [[gel]] and [[cube|cubes]] fall out of it. It can be hooked up to a [[button (Portal 2)|button]].
 
A '''dropper''' is a puzzle element in [[Portal 2]]. Things like [[gel]] and [[cube|cubes]] fall out of it. It can be hooked up to a [[button (Portal 2)|button]].
  
==Creation==
+
==Creating Droppers==
See [[mp_coop_start]].
+
1. Create a [[func_instance]] entity with the following properties:
 +
 
 +
::{| class=standard-table
 +
!  Property Name || Value
 +
|-
 +
| Fix up Name || box_dropper
 +
|-
 +
| VMF Filename || instances/gameplay/cube_dropper_normal.vmf
 +
|}
 +
 
 +
If the cube dropper doesn't show up then save and reload so you can position it properly.
 +
 
 +
2. Create the entity you want to activate the cube dropper. For example, a [[trigger_once]] at the entrance to the room, and give it the following outputs:
 +
 
 +
::{| class=standard-table
 +
!  || My Output || Target Entity || Target Input || Parameter || Delay || Only Once
 +
|-
 +
| [[Image:Io11.png]] || OnTrigger || box_dropper || instance:@cube_dropper;Trigger || || 0.00 || No
 +
|-
 +
| [[Image:Io11.png]] || OnTrigger || box_dropper || instance:@cube_dropper_autorespawn;Enable || || 0.00 || No
 +
|}
 +
 
 +
3. Hammer may indicate that these are invalid. Ignore it.
  
 
[[Category:Portal 2 Level Design]]
 
[[Category:Portal 2 Level Design]]
 
[[Category:Portal 2 Tutorials]]
 
[[Category:Portal 2 Tutorials]]

Revision as of 08:19, 15 May 2011

Русский
Dropboxicon.png

A dropper is a puzzle element in Portal 2. Things like gel and cubes fall out of it. It can be hooked up to a button.

Creating Droppers

1. Create a func_instance entity with the following properties:

Property Name Value
Fix up Name box_dropper
VMF Filename instances/gameplay/cube_dropper_normal.vmf

If the cube dropper doesn't show up then save and reload so you can position it properly.

2. Create the entity you want to activate the cube dropper. For example, a trigger_once at the entrance to the room, and give it the following outputs:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnTrigger box_dropper instance:@cube_dropper;Trigger 0.00 No
Io11.png OnTrigger box_dropper instance:@cube_dropper_autorespawn;Enable 0.00 No

3. Hammer may indicate that these are invalid. Ignore it.