Frictional Games Forum (read-only)

Full Version: Rising Water
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

here is my problem. I have a room with a closed door.

When the player us a lever a stream of water is coming out of a tube.

That all works fine, but now my problem.

I've tried a simple plane with a water material set on the floor, after using the lever, i start a timer

Code:
void WaterRiseFunc(string &in asTimer)
{
    AddBodyForce("Plane",10000,10000,10000,"");
    AddBodyImpulse("Plane",10000,10000,10000,"");
    AddPropForce("Plane",10000,10000,10000,"");
    AddPropImpulse("Plane",10000,10000,10000,"");
    AddTimer("WaterRise",1,"WaterRiseFunc");
}

so the water should rise.

Of course it doesn't work.Confused

I also have tried the entity "water planes" from the "special" menu.

Again, it doesnt work.

I also have tried values like 50000, nothing.

I've tried to load the "water planes" ent file in the editor and set it to automove, but then the game crashed.

If anyone can help me to rise the water, would be great.
It's not really possible to do rising water in an easy way. In Penumbra you could do rising water quite easy, but for Amnesia we have not had anything like that so no functionality for it.

You would have to make a special entity that is a move entity and then you would have to use several water areas that are turned on and off as the water rise. That might work, but is quite complicated to make if just beginning with the level editing and scriptoing.
(09-29-2010, 06:59 PM)jens Wrote: [ -> ]It's not really possible to do rising water in an easy way. In Penumbra you could do rising water quite easy, but for Amnesia we have not had anything like that so no functionality for it.

You would have to make a special entity that is a move entity and then you would have to use several water areas that are turned on and off as the water rise. That might work, but is quite complicated to make if just beginning with the level editing and scriptoing.
Hm, ok i think i'll try.
As far as I get it RotatePropToSpeed(...) ; rotates a prop. Rotation could be used as translation, especially if you exploit the last parameter <string& asOffsetArea> and use a distant area for the center of rotation.
Never tried that myself and not sure if it will work, just speculation here. Smile
Is it possible to attach the water as an Object associated with a vertically opening Door?

I've done quite a bit of modding with various LithTech editors and that is the way we would flood rooms: Attach Water Volumes to Door Objects that appear outside of the visible area of the map. When the Door was activated via Trigger (or otherwise), it would rise and the Water Volume would rise and travel with the Door.