document player.get_dir function (#695)

* update doc/*/scripting/builtins/libplayer.md
This commit is contained in:
MihailRis 2025-11-22 23:36:46 +03:00 committed by GitHub
parent f13cd15ae0
commit 64f7c19766
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -48,6 +48,12 @@ player.set_rot(playerid: int, x: number, y: number, z: number)
Set camera rotation (degrees)
```lua
player.get_dir(playerid: int) -> vec3
```
Returns the player look direction vector
```lua
player.get_inventory(playerid: int) -> int, int
```

View File

@ -48,6 +48,12 @@ player.set_rot(playerid: int, x: number, y: number, z: number)
Устанавливает x, y вращения камеры (в градусах)
```lua
player.get_dir(playerid: int) -> vec3
```
Возвращает вектор направления взгляда игрока
```lua
player.get_inventory(playerid: int) -> int, int
```