Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc/lua/tech.md
blob: bf25a194886dd7e127ba833f79383a9f23c532ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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.