once you roughly understand that BRANCH and RACE are similar…
- You can simply swap the line
branch:
forrace:
. - Then, indent your second loop.
Now you have 2 “blocks” of code running in your RACE.
… - Now you can easily add a 3rd “block” of code to that race:
FortCharacter.EliminatedEvent.Await()
Whichever of the 3 code-blocks exits first, will exit out of UpdateMode() for the others.
Easy!
Final code:
if (FortChar...)
FortChar.Hide()...
race:
loop: #first block (physics code)
if (...IsActive[]):
....
loop: #second block (run-animation code)
if (not ...IsActive[])
...
...
block: #new/third block
FortCharacter.EliminatedEvent.Await()