mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
document player.get_dir function (#695)
* update doc/*/scripting/builtins/libplayer.md
This commit is contained in:
parent
f13cd15ae0
commit
64f7c19766
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue