mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Better document behavior of on_punchplayer
Esp. the fact that it's invoked even if the punched player is dead
This commit is contained in:
parent
c4578aefe7
commit
e32a630937
@ -3718,6 +3718,7 @@ Call these functions only at load time!
|
||||
* Called after a new player has been created
|
||||
* `minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, dir, damage))`
|
||||
* Called when a player is punched
|
||||
* Note: This callback is invoked even if the punched player is dead.
|
||||
* `player`: ObjectRef - Player that was punched
|
||||
* `hitter`: ObjectRef - Player that hit
|
||||
* `time_from_last_punch`: Meant for disallowing spamming of clicks
|
||||
|
Loading…
Reference in New Issue
Block a user