update doc/*/scripting/ecs.md

This commit is contained in:
MihailRis 2026-07-18 19:46:21 +03:00
parent e4a11f182e
commit b99be08e88
2 changed files with 11 additions and 0 deletions

View file

@ -264,3 +264,9 @@ function on_used(playerid: int)
```
Called when an entity is used (RMB by entity). The player ID is passed as an argument.
```lua
function on_player_set(playerid: int)
```
Called when an entity is attached to a player.

View file

@ -265,3 +265,8 @@ function on_used(playerid: int)
Вызывается при использовании сущности (ПКМ по сущности). ID игрока передается в качестве аргумента.
```lua
function on_player_set(playerid: int)
```
Вызывается при прикреплении сущности к игроку.