> For the complete documentation index, see [llms.txt](https://levelalfaomega.gitbook.io/unity-mugen/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://levelalfaomega.gitbook.io/unity-mugen/unity-mugen/state-controller-reference/bindtoroot.md).

# BindToRoot

## Required parameters:

&#x20;          none

### Optional parameters:

&#x20;          time = *bind\_time* (int)

&#x20;                     Specify number of ticks that this binding should be effective. Defaults to 1.

&#x20;          facing = *facing\_flag* (int)

&#x20;                     If *facing\_flag* is -1, makes the player always face the opposite direction from its root during the binding time. If *facing\_flag* is 1, makes the player always face the same direction as its root during the binding time. If *facing\_flag* is 0, the player will not turn regardless of what its root does. Defaults to 0.

&#x20;          pos = *pos\_x* (float), *pos\_y* (float)

&#x20;                     *pos\_x* and *pos\_y* specify the offsets (from the root's axis) to bind to. Defaults to 0,0.

### Notes:

&#x20;          If the player's root is disabled for any reason, then the effect of BindToRoot is terminated.
