new player.* functions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user