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.
- All 280
- Math functions 33
- Query (q.) 60
- YSM player & entity 105
- YSM projectiles 9
- Controller (ctrl.) 25
- Script controller 5
- TaCZ guns 9
- Immersive Melodies 5
- Touhou Little Maid 16
- Curios accessories 4
- Other mods 9
| Molang | What it does | Since |
|---|---|---|
| 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 seconds | 2.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 omitted | 2.5.0 |
| ysm.state_continue<br>ysm.state_stop<br/>ysm.state_pause<br/>ysm.state_bypass | Constants, script controller onlySee the custom functions section for details | 2.5.0 |
| ysm.reset | No parametersImmediately resets the animation controller to its initial state. Abruptly stops any playing animation without smooth transition. Also includes the effect of ctrl.indicate_reload | 2.5.0 |
| ysm.indicate_reload | Reload animationSimilar to ysm.reset, but called before animations like play_once or hold_on_last_frame to reset and replay them. | 2.5.0 |