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

summaryrefslogtreecommitdiff
path: root/doc/lua/playercompanions.md
blob: 298a85aa5a9e6961e47e60aa5eb6fb9cd1743aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
The playerCompanions table contains bindings used to manage player companions such as pets and crew members.

---

#### `JsonArray` playerCompanions.getCompanions(`String` companionType)

Returns a list of configurations for all companions of the specified type.

---

#### `void` playerCompanions.setCompanions(`String` companionType, `JsonArray` companions)

Sets the player's companions of the specified type to the specified list of companion configurations.