update doc/*/scripting/builtins/libplayer.md
This commit is contained in:
parent
9b2cceac18
commit
047b1772f2
@ -96,6 +96,15 @@ player.get_spawnpoint(playerid: int) -> number, number, number
|
|||||||
|
|
||||||
Spawn point setter and getter
|
Spawn point setter and getter
|
||||||
|
|
||||||
|
```lua
|
||||||
|
player.is_suspended(pid: int) -> bool
|
||||||
|
player.set_suspended(pid: int, suspended: bool)
|
||||||
|
```
|
||||||
|
|
||||||
|
Setter and getter for the player's suspended status.
|
||||||
|
|
||||||
|
When suspended, the entity is deleted and the player is disabled from the world simulation.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
player.set_name(playerid: int, name: str)
|
player.set_name(playerid: int, name: str)
|
||||||
player.get_name(playerid: int) -> str
|
player.get_name(playerid: int) -> str
|
||||||
|
|||||||
@ -96,6 +96,15 @@ player.get_spawnpoint(playerid: int) -> number, number, number
|
|||||||
|
|
||||||
Сеттер и геттер точки спавна игрока
|
Сеттер и геттер точки спавна игрока
|
||||||
|
|
||||||
|
```lua
|
||||||
|
player.is_suspended(pid: int) -> bool
|
||||||
|
player.set_suspended(pid: int, suspended: bool)
|
||||||
|
```
|
||||||
|
|
||||||
|
Сеттер и геттер статуса "заморозки" игрока.
|
||||||
|
|
||||||
|
При "заморозке" удаляется сущность, а игрок выключается из симуляции мира.
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
player.set_name(playerid: int, name: str)
|
player.set_name(playerid: int, name: str)
|
||||||
player.get_name(playerid: int) -> str
|
player.get_name(playerid: int) -> str
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user