diff options
Diffstat (limited to 'doc/lua/tech.md')
-rw-r--r-- | doc/lua/tech.md | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/doc/lua/tech.md b/doc/lua/tech.md new file mode 100644 index 0000000..bf25a19 --- /dev/null +++ b/doc/lua/tech.md @@ -0,0 +1,63 @@ +# tech + +The `tech` table contains functions exclusively available in tech scripts. + +--- + +#### `Vec2F` tech.aimPosition() + +Returns the current cursor aim position. + +--- + +#### `void` tech.setVisible(`bool` visible) + +Sets whether the tech should be visible. + +--- + +#### `void` tech.setParentState(`String` state) + +Set the animation state of the player. + +Valid states: +* "Stand" +* "Fly" +* "Fall" +* "Sit" +* "Lay" +* "Duck" +* "Walk" +* "Run" +* "Swim" + +--- + +#### `void` tech.setParentDirectives(`String` directives) + +Sets the image processing directives for the player. + +--- + +#### `void` tech.setParentHidden(`bool` hidden) + +Sets whether to make the player invisible. Will still show the tech. + +--- + +#### `void` tech.setParentOffset(`Vec2F` offset) + +Sets the position of the player relative to the tech. + +--- + +#### `bool` tech.parentLounging() + +Returns whether the player is lounging. + +--- + +#### `void` tech.setToolUsageSuppressed(`bool` suppressed) + +Sets whether to suppress tool usage on the player. When tool usage is suppressed no items can be used. + |