How to destroy the cube in water?

Avatar
whupper
42 Posts
Posted Jan 05, 2008
I have a water hazard and want the cube to be destroyed if it is dropped in there. Any ideas? I've been trying to use trigger_hurt but to no avail.
Advertisement
Registered users don't see ads! Register now!
Avatar
E1025
104 Posts
Posted Jan 05, 2008
Replied 1 hour later

Place a trigger at the bottom of the water with the flag "Physics Objects" and give it an output of:

OnStartTouch, TargetEntitiesNamed: !activator, ViaThisInput: Kill

If you have a box dropper or some thing that respawns boxes make sure to add an output for the water for when it's activated it respawns a box. Add a filter to the trigger if the box isn't the only physics object in the area.

Take a look at Thinking With Portal's box dropper tutorial if you need any more help.

http://wiki.thinkingwithportals.com/wik ... ller_Water

Avatar
yikkayaya
71 Posts
Posted Jan 05, 2008
Replied 2 hours later
Much more flashy if you use a fizzler without the "clients" flag instead of a "kill" trigger. It's much more fun seeing the cube dissolving than just disappearing when the touching water
Avatar
Dewin
43 Posts
Posted Jan 05, 2008
Replied 4 hours later
The CP4P slime implementation kills the cube after a brief (1s?) delay, so you get to see it splash to its doom rather than an instant !activator --> Kill

I actually am going to have to track other physics things in my slime... I'm taking a break from my 'real' portal map and making a fun diversionary activity called "Turret Bowling" ...

Avatar
xitooner
132 Posts
Posted Jan 05, 2008
Replied 56 minutes later

Actually, killing the cube almost always leads to needing the box dropper to drop another cube, so its best to follow the instructions in this tutorial, which describes the relationship between killer water, box droppers, and how to handle cubes with it:

http://wiki.thinkingwithportals.com/wiki/Box_Dropper

Avatar
Interitus
145 Posts
Posted Jan 06, 2008
Replied 13 hours later
There's also a trigger named trigger_remove that'll remove anything. but ***BE SURE TO UNCHECK '*CLIENTS' IN THE FLAGS or it'll crash portal. Just check 'physics objects'.
Avatar
Hedgehog
43 Posts
Posted Jan 06, 2008
Replied 2 hours later

Interitus wrote:
There's also a trigger named trigger_remove that'll remove anything. but ***BE SURE TO UNCHECK '*CLIENTS' IN THE FLAGS or it'll crash portal. Just check 'physics objects'.

I liked my floating keyboards in the water

Advertisement
Registered users don't see ads! Register now!
Avatar
Interitus
145 Posts
Posted Jan 06, 2008
Replied 14 hours later
Hehe. I put my triggers fairly far under the water so things still get a splash. So keyboards would probably remain floating