diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-07-27 11:32:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 11:32:35 +0200 |
commit | 550c0404a8b6fbee857003c961bb802121e88f51 (patch) | |
tree | 1b408c5cbb94b8211636d621eab2622e65906137 /doc | |
parent | ba959ce27f20d0887fc94da4e40880749a493cde (diff) | |
download | minetest-550c0404a8b6fbee857003c961bb802121e88f51.tar.gz minetest-550c0404a8b6fbee857003c961bb802121e88f51.tar.bz2 minetest-550c0404a8b6fbee857003c961bb802121e88f51.zip |
Add LuaEntity on_death callback (#6177)
Add LuaEntity on_death callback
This fixes #5474
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 2a092300e..b9dc1b47f 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3864,6 +3864,9 @@ Registered entities * `tool_capabilities`: capability table of used tool (can be `nil`) * `dir`: unit vector of direction of punch. Always defined. Points from the puncher to the punched. + `on_death(self, killer)` + * Called when the object dies. + * `killer`: an `ObjectRef` (can be `nil`) * `on_rightclick(self, clicker)` * `get_staticdata(self)` * Should return a string that will be passed to `on_activate` when |