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 /src/script/cpp_api/s_entity.h | |
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 'src/script/cpp_api/s_entity.h')
-rw-r--r-- | src/script/cpp_api/s_entity.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_entity.h b/src/script/cpp_api/s_entity.h index 4e2a056bb..07b06edff 100644 --- a/src/script/cpp_api/s_entity.h +++ b/src/script/cpp_api/s_entity.h @@ -41,6 +41,7 @@ public: bool luaentity_Punch(u16 id, ServerActiveObject *puncher, float time_from_last_punch, const ToolCapabilities *toolcap, v3f dir, s16 damage); + bool luaentity_on_death(u16 id, ServerActiveObject *killer); void luaentity_Rightclick(u16 id, ServerActiveObject *clicker); }; |