update doc/*/scripting/events.md

This commit is contained in:
MihailRis
2024-11-21 07:25:31 +03:00
parent 61b1aa8e3d
commit 3cd3fe94de
2 changed files with 14 additions and 2 deletions
+7 -1
View File
@@ -38,7 +38,13 @@ Called on random block update (grass growth)
function on_blocks_tick(tps: int)
```
Called tps (20) times per second.
Called tps (20) times per second. Use 1/tps instead of `time.delta()`.
```lua
function on_player_tick(playerid: int, tps: int)
```
Called tps (20) times per second. Use 1/tps instead of `time.delta()`.
## Item events