Please or Register to create posts and topics.

How to destroy the cube in water?

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.

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

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 :P

Not thinking without portals at the very least...

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" ...

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

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'.

http://interitus.deviantart.com
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 ;)

Hehe. I put my triggers fairly far under the water so things still get a splash. So keyboards would probably remain floating :D

http://interitus.deviantart.com