]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - doc/lua_api.txt
Add API function to invoke player respawn
[dragonfireclient.git] / doc / lua_api.txt
index 882c9c54c89a66c03a2dda7348610be35f0de49c..15a067a5ed82ea037fda7638d5fdeaef00ae4371 100644 (file)
@@ -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`
 -----------