Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better document behavior of on_punchplayer
Esp. the fact that it's invoked even if the punched player is dead
  • Loading branch information
ClobberXD authored and sfan5 committed Apr 29, 2019
1 parent c4578ae commit e32a630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/lua_api.txt
Expand Up @@ -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
Expand Down

0 comments on commit e32a630

Please sign in to comment.