Skip to content

Movable Behavior functions

make_custom_behavior

source

function make_custom_behavior(behavior_name: string, state_id: integer, base_behavior?: VanillaMovableBehavior): CustomMovableBehavior?
behavior_name: string
state_id: integer
base_behavior?: VanillaMovableBehavioroptional

Returns CustomMovableBehavior? (may be nil)

Make a CustomMovableBehavior, if base_behavior is nil you will have to set all of the behavior functions. If a behavior with behavior_name already exists for your script it will be returned instead.