Lumberyard
Legacy Reference

Adding a Dead-Man Switch to a Scene

Using Flow Graph, a dead-man switch can be implemented. When a player fails to perform a specified action by a certain time, such as a button push, the sequence stops and the player dies. An example is shown below.


            See the example Flow Graph graph to create a dead-man switch.

A less strict implementation can be set up where, for example, instead of the player dying, the sequence continues and the player may just stumble. The following image shows an example of how to use a separate sequence that runs in parallel to the main sequence.


            See the example Flow Graph graph where the sequence continues.