mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
fix libplayer.md
This commit is contained in:
parent
4b42369c31
commit
f262c0f297
2 changed files with 16 additions and 16 deletions
|
|
@ -43,29 +43,29 @@ player.get_inventory(playerid: int) -> int, int
|
|||
Возвращает id инвентаря игрока и индекс выбранного слота (от 0 до 9)
|
||||
|
||||
```lua
|
||||
player.is_flight() -> bool
|
||||
player.set_flight(bool)
|
||||
player.is_flight(playerid: int) -> bool
|
||||
player.set_flight(playerid: int, bool)
|
||||
```
|
||||
|
||||
Геттер и сеттер режима полета
|
||||
|
||||
```lua
|
||||
player.is_noclip() -> bool
|
||||
player.set_noclip(bool)
|
||||
player.is_noclip(playerid: int) -> bool
|
||||
player.set_noclip(playerid: int, bool)
|
||||
```
|
||||
|
||||
Геттер и сеттер noclip режима (выключенная коллизия игрока)
|
||||
|
||||
```lua
|
||||
player.is_infinite_items() -> bool
|
||||
player.set_infinite_items(bool)
|
||||
player.is_infinite_items(playerid: int) -> bool
|
||||
player.set_infinite_items(playerid: int, bool)
|
||||
```
|
||||
|
||||
Геттер и сеттер бесконечных предметов (не удаляются из инвентаря при использовании)
|
||||
|
||||
```lua
|
||||
player.is_instant_destruction() -> bool
|
||||
player.set_instant_destruction(bool)
|
||||
player.is_instant_destruction(playerid: int) -> bool
|
||||
player.set_instant_destruction(playerid: int, bool)
|
||||
```
|
||||
|
||||
Геттер и сеттер мнгновенного разрушения блоков при активации привязки `player.destroy`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue