resetCallstack method

void resetCallstack()
Unwinds the callstack. Useful to reset the Story's evaluation without actually changing any meaningful state, for example if you want to exit a section of story prematurely and tell it to go elsewhere with a call to ChoosePathString(...). Doing so without calling ResetCallstack() could cause unexpected issues if, for example, the Story was in a tunnel already.

Implementation

void resetCallstack() {
  ifAsyncWeCant('ResetCallstack');
  _state.ForceEnd();
}