Character State

One feature of StateManagerComponent is to manage Character State.
Character State describes what owner is currently doing, his behavior.

These are functions to modify or get info about current state.

There are few params that can be modified on StateManagerComponent related to states.

  • Default State is state which will be set after calling functions SetDefaultState or ResetState
  • Non Switchable State is state which can't be changed unless param Force is true on SetState function.
    It is used for Dead state to ensure that once owner will get in that state, it shouldnt be changed unless its forced to.

Whenever current state is changed, State Manager Component triggers event that owner can react to.