mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fixes around ServerActiveObject on_punch handling
This commit is contained in:
parent
8d6a0b917c
commit
e774d8ca2f
3 changed files with 6 additions and 2 deletions
|
@ -3900,6 +3900,7 @@ Callbacks:
|
|||
* `dir`: unit vector of direction of punch. Always defined. Points from the
|
||||
puncher to the punched.
|
||||
* `damage`: damage that will be done to entity.
|
||||
* Can return `true` to prevent the default damage mechanism.
|
||||
* `on_death(self, killer)`
|
||||
* Called when the object dies.
|
||||
* `killer`: an `ObjectRef` (can be `nil`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue