mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
new player.* functions
This commit is contained in:
parent
0ad3dd7ab8
commit
1917cbba8b
16 changed files with 306 additions and 224 deletions
|
|
@ -69,6 +69,20 @@ player.get_inventory(playerid: int) -> int, int
|
|||
|
||||
Returns player inventory ID and selected slot index (0-9)
|
||||
|
||||
```python
|
||||
player.is_flight() -> bool
|
||||
player.set_flight(bool)
|
||||
```
|
||||
|
||||
Getter and setter for player flight mode
|
||||
|
||||
```python
|
||||
player.is_noclip() -> bool
|
||||
player.set_noclip(bool)
|
||||
```
|
||||
|
||||
Getter and setter for player noclip mode (physics disabled)
|
||||
|
||||
## *world* library
|
||||
|
||||
```python
|
||||
|
|
|
|||
|
|
@ -63,6 +63,20 @@ player.get_inventory(playerid: int) -> int, int
|
|||
|
||||
Возвращает id инвентаря игрока и индекс выбранного слота (от 0 до 9)
|
||||
|
||||
```python
|
||||
player.is_flight() -> bool
|
||||
player.set_flight(bool)
|
||||
```
|
||||
|
||||
Геттер и сеттер режима полета
|
||||
|
||||
```python
|
||||
player.is_noclip() -> bool
|
||||
player.set_noclip(bool)
|
||||
```
|
||||
|
||||
Геттер и сеттер noclip режима (выключенная физика игрока)
|
||||
|
||||
## Библиотека world
|
||||
|
||||
```python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue