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

summaryrefslogtreecommitdiff
path: root/doc/lua/scriptedanimator.md
blob: f714bd1e7057e61ffa9047fe6bbbb7e8458010f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# animationConfig

The `animationConfig` table contains functions for getting configuration options from the base entity and its networked animator.

It is available only in client side rendering scripts.

---

#### `Json` animationConfig.animationParameter(`String` key)

Returns a networked value set by the parent entity's master script.

---

#### `Vec2F` animationConfig.partPoint(`String` partName, `String` propertyName)

Returns a `Vec2F` configured in a part's properties with all of the part's transformations applied to it.

---

#### `PolyF` animationConfig.partPoly(`String` partName, `String` propertyName)

Returns a `PolyF` configured in a part's properties with all the part's transformations applied to it.