They Were So Close is my submission for the 2023 Epic MegaJam, a week-long game jam contest. The given theme was "Antiquated Future". The game puts the player in control of a steam powered robot, tasked with surveying planet Earth after humans destroyed the planet and left.
The robot can use its steam jets to spray water onto pressure switches, activating doors and platforms. It can also switch to a hover mode in order to float across gaps. These elements allow the player to solve puzzles and traverse the environment.
This Blueprint is an implementation of a Water Item that controls a sliding door and optionally reveals a water mesh once fully opened. The original idea was this would fill in a gap with water so the player could traverse across, but when I added a hover element to the player this no longer became needed. It was still used in the game mainly as a sliding door element, and it was also used at the very end to trigger the water and thank you message (since the door is a required element for this Blueprint, it was hidden out of sight in this case).
The "Fill Level Did Change", "Did Become Full", and "Did Become Empty" events are overridden from the parent Water Item blueprint in order to achieve this functionality. A "LocalFillLevelDidChange" event was called from the corresponding overridden function because the Timeline controlling the door could not be updated from inside a function, due to how functions in Unreal can only contain calls that finish instantly, so this was used as a workaround.