Molang

YSM Molang reference: Script controller

Every Molang function and variable you can use in Yes Steve Model animations and controllers, with what it returns and the YSM version that added it. New to Molang? Start with Molang in YSM.

MolangWhat it doesSince
ctrl.set_beginning_<br>transition_length(second)Script controller only. Sets the animation transition time for the current controllerAccepts 1 parameter: animation transition time in seconds2.5.0
ctrl.set_animation(animation, loop_type)Script controller only. Plays the specified animationAccepts 1~2 parameters. 1st: animation name. 2nd (optional): loop type. Uses the animation's preset loop type if omitted2.5.0
ysm.state_continue<br>ysm.state_stop<br/>ysm.state_pause<br/>ysm.state_bypassConstants, script controller onlySee the custom functions section for details2.5.0
ysm.resetNo parametersImmediately resets the animation controller to its initial state. Abruptly stops any playing animation without smooth transition. Also includes the effect of ctrl.indicate_reload2.5.0
ysm.indicate_reloadReload animationSimilar to ysm.reset, but called before animations like play_once or hold_on_last_frame to reset and replay them.2.5.0