Sorry to be posting every day about new issues but this one is easily the worst for me as I really want to use this feature.

There's an old screenshot for original Amnesia of the cistern entrance flooded and I wanted to use that so I have done exactly that. However, when walking on the platform above, it still makes the water walking / running sounds. To understand what I'm stating: https://www.youtube.com/watch?v=9rCmOdgOhKU

Is this the original Cistern level unmodified? Because that should not happen. Looks like a bug to me, unless you have a water area that extends to the upper portion.

Or do you mean that you have another liquid area higher up that should be disabled? It might be that liquid areas aren't affected by scripts as to enable/disable them.

I can't tell what your script is doing because I don't know where these areas are placed. But seemingly you first collide with an area called CollideToggleWater_1, which will teleport a liquid area "back to map", then later you can collide with the other area which will teleport it away.

(06-23-2018, 11:12 PM)Mudbill Wrote: Is this the original Cistern level unmodified? Because that should not happen. Looks like a bug to me, unless you have a water area that extends to the upper portion.

Or do you mean that you have another liquid area higher up that should be disabled? It might be that liquid areas aren't affected by scripts as to enable/disable them.

I can't tell what your script is doing because I don't know where these areas are placed. But seemingly you first collide with an area called CollideToggleWater_1, which will teleport a liquid area "back to map", then later you can collide with the other area which will teleport it away.

1) It is the original Cistern level but with few changes, such as more candles and better lighting in the tunnel to the Sewer door, no lever or pipe blocking the ladder (ladder is already down) and the whole level is now flooded as opposed to only the stairs flooded.

3) What I was trying to do for the script was to do the following:
If player enters CollideToggleWater,
Check if player is in water, if not; set PlayerInWater to 0,
Set the Liquid Area not active and move it to the -4.994, -0.91, 50.263.
This moves it out of the level.

If player enters CollideToggleWater_1,
Check if player is in water, if so; set PlayerInWater to 1,
Set the Liquid Area active and move it to the -4.994, -0.91, 0.263.
This brings it back into its original place.

If you needed to know, AreaToggleWater is at the top of the ladder
and AreaToggleWater_1 is on the ground / water.

You can enable a debug toggle in the F1 menu in-game to let you see where areas are. This could help you determine if the area actually moved. Maybe water areas still affect the player even if they're far above.

(06-25-2018, 03:46 PM)Mudbill Wrote: You can enable a debug toggle in the F1 menu in-game to let you see where areas are. This could help you determine if the area actually moved. Maybe water areas still affect the player even if they're far above.

Thanks but I already know about the physics draw option on the debug menu. It shows that it does move away but still doesn't work. I even tried to move it above / below the map and still to no avail. So I'm gonna assume the no matter where the LiquidArea is, whether you are on at the same height but not in the area or above / below the area but in the area; it will always play the water_walk/run sounds as opposed to the rock_water_walk/run sounds. Unless there's any other suggestions, I might have to omit this part and literally copy the original Cistern level. :/

Yes and even diagonally, still not working. The only other suggestion that I can think of is to replace the entity water_plane with a primitive version of it. So when the water is drained via cistern, instead of loading this map, it will load a redux version that makes minor changes and removes that water.

Ok, I set up a minimap level to reproduce the issue and I found out what's going on.

There seems to be an event triggered when you first ENTER a liquid area which enables the splashing, then another when you LEAVE which disables it.

If you teleport the area away from the player after they have entered it, the LEAVE callback isn't triggered. This means that anywhere you walk will cause splash effects until you enter the area's new location and then leave it again. That's when the LEAVE callback is finally triggered and all the positions seem to be up to date afterwards.

This means you'll have to find a way to work around this issue.

Edit: Setting it inactive has the same effect except it won't trigger the ENTER callback anymore, so you can't reset the state using the inactive area.

Edit 2: Maybe you can avoid the issue by not disabling or teleporting the area until you know the player has already left it. So let the player cause the LEAVE callback, then change the areas. Perhaps using a collide callback script area that hovers in the middle of the ladder across the entire room (make it very thin, but not 0).

(06-27-2018, 03:42 PM)Mudbill Wrote: Ok, I set up a minimap level to reproduce the issue and I found out what's going on.

There seems to be an event triggered when you first ENTER a liquid area which enables the splashing, then another when you LEAVE which disables it.

If you teleport the area away from the player after they have entered it, the LEAVE callback isn't triggered. This means that anywhere you walk will cause splash effects until you enter the area's new location and then leave it again. That's when the LEAVE callback is finally triggered and all the positions seem to be up to date afterwards.

This means you'll have to find a way to work around this issue.

Edit: Setting it inactive has the same effect except it won't trigger the ENTER callback anymore, so you can't reset the state using the inactive area.

Edit 2: Maybe you can avoid the issue by not disabling or teleporting the area until you know the player has already left it. So let the player cause the LEAVE callback, then change the areas. Perhaps using a collide callback script area that hovers in the middle of the ladder across the entire room (make it very thin, but not 0).

Thank you for the information but I have managed to fix this frustrating issue / bug. All I did was made a way to get out of the water before using the ladder as using the ladder doesn't seem to use the LEAVE function of the water as you stated. My new problem was that the ladder was still accessible from the water so I had to place a custom-made invisible box to block the ladder being used and I reworked the ToggleWater script to ToggleInvisBox, so now instead of disabling the water, it now disables that block box so the ladder can be used, but when you enter the water again, it will re-activate the block box.

EDIT: I guess I didn't like my idea with the stairs and the block box so I removed it . However, as I fell asleep that night, I had an idea... and it works great (for the most part). All I did was place another small liquid area above the ladder so when you get off the ladder, it WILL trigger the LEAVE function of the water. Once again, thanks for the help you've provided.