Slime Water: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(want to kill objects too)
Line 9: Line 9:
* Create another brush in the same location.  Texture with [[tool textures#trigger|toolstrigger]].  Choose Tie to Entity and select [[Trigger_hurt]].  Set Damage to 100.
* Create another brush in the same location.  Texture with [[tool textures#trigger|toolstrigger]].  Choose Tie to Entity and select [[Trigger_hurt]].  Set Damage to 100.
* You will fall through water, so the basin needs another brush at its base.
* You will fall through water, so the basin needs another brush at its base.
* One way to destroy objects: place a [[trigger_multiple]] above the water, with the flag Physics Objects, and the output OnTrigger / !activator / Kill.
* One way to destroy objects: place a [[trigger_multiple]] above the water, with the flag Physics Objects, and this output:
 
:{| border=1 cellpadding="2" cellspacing="1"
|- align=left style="background:#DCDCDC; color:black"
!
! My Output > !! Target Entity !! Target Input !! Parameter !! Delay !! Only Once
|-
| [[Image:Io11.png]] || OnStartTouch || !activator || Dissolve ||   || 0.00 || No
|}
 
{{Note|The engine will show you that 'Dissolve' is invalid, just ignore it}}
 


See [[sp_a2_bridge_the_gap]].
See [[sp_a2_bridge_the_gap]].

Revision as of 04:12, 10 June 2011

Template:Otherlang2

Drownicon.png

Slime or toxic water is an obstacle in Portal 2. Like shredders and pits, objects and players that drop into it are destroyed. The surface is brown and green, and it looks green for submerged players.

Creation

  • Create a brush extending over the area where you want the slime. Apply a toolsnodraw texture to all surfaces, then one of the toxicslime textures to the top.
  • Create another brush in the same location. Texture with toolstrigger. Choose Tie to Entity and select Trigger_hurt. Set Damage to 100.
  • You will fall through water, so the basin needs another brush at its base.
  • One way to destroy objects: place a trigger_multiple above the water, with the flag Physics Objects, and this output:
My Output > Target Entity Target Input Parameter Delay Only Once
Io11.png OnStartTouch !activator Dissolve   0.00 No
Note.pngNote:The engine will show you that 'Dissolve' is invalid, just ignore it


See sp_a2_bridge_the_gap.