diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-01 13:40:48 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-01 13:40:48 +1100 |
commit | a424c3cfe8580a2d17f47d614897cca87f95a02e (patch) | |
tree | 9619149dd52778858435d4a67db27f4f60e60cdc /assets | |
parent | 574c62bc32a99891295ecdcf671c7e3145c7aab2 (diff) |
add command to disable head rotation per-char
Diffstat (limited to 'assets')
-rw-r--r-- | assets/opensb/scripts/opensb/player/commands.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/opensb/scripts/opensb/player/commands.lua b/assets/opensb/scripts/opensb/player/commands.lua index 9696e0d..2d83106 100644 --- a/assets/opensb/scripts/opensb/player/commands.lua +++ b/assets/opensb/scripts/opensb/player/commands.lua @@ -36,4 +36,15 @@ register("run", function(src) end end) +register("headrotation", function(arg) + local key = "disableHeadRotation" + if status.statusProperty(key) == true then + status.setStatusProperty(key, nil) + return "Head rotation is now enabled for this character" + else + status.setStatusProperty(key, true) + return "Head rotation is now disabled for this character" + end +end) + module.register = register
\ No newline at end of file |