mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18: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
|
|||
|
||||
Player name setter and getter
|
||||
|
||||
```lua
|
||||
player.get_camera(playerid: int) -> int
|
||||
```
|
||||
|
||||
Returns the index of the player's current camera.
|
||||
|
||||
```lua
|
||||
player.set_camera(playerid: int, camera_index: int)
|
||||
```
|
||||
|
||||
Switches the player's camera. See [cameras](libcameras.md).
|
||||
|
||||
```lua
|
||||
player.set_selected_slot(playerid: int, slotid: int)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue