Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Water
Essen Offline
Junior Member

Posts: 23
Threads: 2
Joined: Jul 2011
Reputation: 0
#1
Water

How to make the water, like, slowly drain after you solve certain puzzle?

For example, there are six levers and you have to move them in right direction(let's say: up, down, down, up, up, down), then there is a lever that checks whether the levers are in correct position, and if they are, water starts draining until there's no water after all.

Would that be possible? If yes, can you please tell me how to do it and all? Thank you for any help.
(This post was last modified: 05-25-2013, 02:55 PM by Essen.)
05-25-2013, 02:54 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#2
RE: Water

I know it's possible, because I've seen some custom story let it rise. (I think it was amnesia: Rain) But does the player see the water drain? You can just set everything inactive if he doesn't.
05-25-2013, 02:56 PM
Find
Essen Offline
Junior Member

Posts: 23
Threads: 2
Joined: Jul 2011
Reputation: 0
#3
RE: Water

Yes, Player would be able to see the water drain.
(This post was last modified: 05-25-2013, 02:57 PM by Essen.)
05-25-2013, 02:57 PM
Find
ClayPigeon Offline
Member

Posts: 214
Threads: 13
Joined: Mar 2012
Reputation: 8
#4
RE: Water

Create an entity that consists of a water material(the game already has that material, just create a plane with some physical attributes) and use a constant pulse on it(AddPropForce).

EDIT:
Alright, I've made a simple map with the water entity that drains down. It's pretty simple but it's buyable, lets say.
Download the custom story and mess with the propimpulse value to change speeds.
I didn't do the lever part, it's relatively simple and I think you can do it yourself.
http://www.solidfiles.com/d/0e84b7a55c/
(This post was last modified: 05-25-2013, 06:15 PM by ClayPigeon.)
05-25-2013, 05:43 PM
Find
Essen Offline
Junior Member

Posts: 23
Threads: 2
Joined: Jul 2011
Reputation: 0
#5
RE: Water

Alright, sounds simple enough. I will try it out. Thank you.
05-25-2013, 07:41 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#6
RE: Water

I did something like this in an old mod. Make it a MoveObject entity. You'll need to change the axis it travels along to Y in the properties. Then I think the script function is SetMoveObjectStateExt to have it travel downwards. This is better than using the prop force on because it's easier to control. You can set start and stop positions as well as speed and acceleration, but with prop force you're doing guesswork. Then your only issue is the water area. When the water lowers you want to disable the water area so the player doesn't hear splash sounds when they walk.

05-25-2013, 10:21 PM
Find




Users browsing this thread: 1 Guest(s)