update doc/*/scripting/builtins/libplayer.md
This commit is contained in:
parent
9cb9b095e8
commit
c0196ef092
@ -142,3 +142,21 @@ player.get_entity(playerid: int) -> int
|
||||
```
|
||||
|
||||
Returns unique identifier of the player entity
|
||||
|
||||
```lua
|
||||
player.get_all_in_radius(center: vec3, radius: number) -> table<int>
|
||||
```
|
||||
|
||||
Returns an array of player IDs within a sphere with center `center` and radius `radius`.
|
||||
|
||||
```lua
|
||||
player.get_all() -> table<int>
|
||||
```
|
||||
|
||||
Returns an array of all active player IDs.
|
||||
|
||||
```lua
|
||||
player.get_nearest(position: vec3) -> int
|
||||
```
|
||||
|
||||
Returns the ID of the player closest to the specified position, or nil if there are no players.
|
||||
|
||||
@ -142,3 +142,21 @@ player.get_entity(playerid: int) -> int
|
||||
```
|
||||
|
||||
Возвращает уникальный идентификатор сущности игрока
|
||||
|
||||
```lua
|
||||
player.get_all_in_radius(center: vec3, radius: number) -> table<int>
|
||||
```
|
||||
|
||||
Возвращает массив id игроков в пределах сферы с центром `center` и радиусом `radius`.
|
||||
|
||||
```lua
|
||||
player.get_all() -> table<int>
|
||||
```
|
||||
|
||||
Возвращает массив id всех активных игроков.
|
||||
|
||||
```lua
|
||||
player.get_nearest(position: vec3) -> int
|
||||
```
|
||||
|
||||
Возвращает id ближайшего к указанной позиции игрока, либо nil если игроков нет.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user