From f195db2d140a7b4f2f2fbc438680c9d5e23a0d6d Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 25 May 2022 19:29:11 +0200 Subject: Add API function to invoke player respawn closes #12272 --- doc/lua_api.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/lua_api.txt') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 882c9c54c..15a067a5e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -7099,6 +7099,8 @@ object you are working with still exists. * `intensity` sets the intensity of the shadows from 0 (no shadows, default) to 1 (blackness) * `get_lighting()`: returns the current state of lighting for the player. * Result is a table with the same fields as `light_definition` in `set_lighting`. +* `respawn()`: Respawns the player using the same mechanism as the death screen, + including calling on_respawnplayer callbacks. `PcgRandom` ----------- -- cgit v1.2.3