Merge pull request #686 from MihailRis/fix-player-docs

fix player library docs
This commit is contained in:
MihailRis 2025-11-20 21:17:58 +03:00 committed by GitHub
commit afe0db2275
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -40,13 +40,13 @@ Sets x, y, z player linear velocity
player.get_rot(playerid: int, interpolated: bool) -> number, number, number
```
Returns x, y, z of camera rotation (radians). Interpolation is relevant in cases where the rotation refresh rate is lower than the frame rate.
Returns x, y, z of camera rotation (degrees). Interpolation is relevant in cases where the rotation refresh rate is lower than the frame rate.
```lua
player.set_rot(playerid: int, x: number, y: number, z: number)
```
Set camera rotation (radians)
Set camera rotation (degrees)
```lua
player.get_inventory(playerid: int) -> int, int

View File

@ -40,13 +40,13 @@ player.set_vel(playerid: int, x: number, y: number, z: number)
player.get_rot(playerid: int, interpolated: bool=false) -> number, number, number
```
Возвращает x, y, z вращения камеры (в радианах). Интерполяция актуальна в случаях, когда частота обновления вращения ниже частоты кадров.
Возвращает x, y, z вращения камеры (в градусах). Интерполяция актуальна в случаях, когда частота обновления вращения ниже частоты кадров.
```lua
player.set_rot(playerid: int, x: number, y: number, z: number)
```
Устанавливает x, y вращения камеры (в радианах)
Устанавливает x, y вращения камеры (в градусах)
```lua
player.get_inventory(playerid: int) -> int, int