document player.get_dir function (#695)
* update doc/*/scripting/builtins/libplayer.md
This commit is contained in:
parent
f13cd15ae0
commit
64f7c19766
@ -48,6 +48,12 @@ player.set_rot(playerid: int, x: number, y: number, z: number)
|
|||||||
|
|
||||||
Set camera rotation (degrees)
|
Set camera rotation (degrees)
|
||||||
|
|
||||||
|
```lua
|
||||||
|
player.get_dir(playerid: int) -> vec3
|
||||||
|
```
|
||||||
|
|
||||||
|
Returns the player look direction vector
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
player.get_inventory(playerid: int) -> int, int
|
player.get_inventory(playerid: int) -> int, int
|
||||||
```
|
```
|
||||||
|
|||||||
@ -48,6 +48,12 @@ player.set_rot(playerid: int, x: number, y: number, z: number)
|
|||||||
|
|
||||||
Устанавливает x, y вращения камеры (в градусах)
|
Устанавливает x, y вращения камеры (в градусах)
|
||||||
|
|
||||||
|
```lua
|
||||||
|
player.get_dir(playerid: int) -> vec3
|
||||||
|
```
|
||||||
|
|
||||||
|
Возвращает вектор направления взгляда игрока
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
player.get_inventory(playerid: int) -> int, int
|
player.get_inventory(playerid: int) -> int, int
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user