Skip to content

MovableBehavior

Generic typesno constructorsource

Derived types: CustomMovableBehavior, VanillaMovableBehavior

Opaque handle to a movable behavior used in some Movable functions

Methods

get_state_id

function MovableBehavior.get_state_id(behavior?: MovableBehavior): integer
behavior?: MovableBehavioroptional

Returns integer

Get the state_id of a behavior, this is the id that needs to be returned from a behavior's get_next_state_id to enter this state, given that the behavior is added to the movable.

source