mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Merge branch 'main' into dev
This commit is contained in:
commit
4f88e3b964
12 changed files with 119 additions and 17 deletions
|
|
@ -119,6 +119,18 @@ player.get_name(playerid: int) -> str
|
|||
|
||||
Сеттер и геттер имени игрока
|
||||
|
||||
```lua
|
||||
player.get_camera(playerid: int) -> int
|
||||
```
|
||||
|
||||
Возвращает индекс текущей камеры игрока
|
||||
|
||||
```lua
|
||||
player.set_camera(playerid: int, camera_index: int)
|
||||
```
|
||||
|
||||
Переключает камеру игрока. См. [камеры](libcameras.md).
|
||||
|
||||
```lua
|
||||
player.set_selected_slot(playerid: int, slotid: int)
|
||||
```
|
||||
|
|
|
|||
|
|
@ -190,6 +190,12 @@ function on_hud_open(playerid: int)
|
|||
|
||||
Вызывается после входа в мир, когда становится доступна библиотека hud. Здесь на экран добавляются постоянные элементы.
|
||||
|
||||
```lua
|
||||
function on_hud_render()
|
||||
```
|
||||
|
||||
Вызывается каждый кадр. Используется для клиентских задач, таких как анимация, управление камерой.
|
||||
|
||||
```lua
|
||||
function on_hud_close(playerid: int)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue