# set_state

set_state(_new_state) Source (opens new window)

Transition to the given state and resets the state timer.

// Without Assistant
state = 2
state_timer = 0 // Don't forget
// With Assistant
set_state(2)


Parameters:

  • _new_state: int
    The state to transition to.

See Also

  • set_window: Transition to the given state and resets the window timer.