summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-04-28 20:18:00 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-04-28 20:18:00 +0100
commitb51bafcf0edc6aaf4825bd2e6f0a0f3b351dc951 (patch)
tree406895f72f14dd1c7ec7c680b3fc0b8cc462c748 /api.txt
parentb512f882e9ba3d255117aa3f4c00c5fb5e6a426f (diff)
Added custom_attack function (thanks to NPXcoot)
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api.txt b/api.txt
index acaa73d..3053cc1 100644
--- a/api.txt
+++ b/api.txt
@@ -79,6 +79,7 @@ This functions registers a new mob as a Minetest entity.
'shoot' shoots defined arrows when player is within range
'explode' follows player in range and will flash and explode when in reach
'dogshoot' shoots arrows when in range and one on one attack when in reach
+ 'custom_attack' is a function that is called when mob is in range to attack player, parameters are (self, to_attack)
'explosion_radius' radius of explosion attack (defaults to 1)
'arrow' if the attack_type is "shoot" or "dogshoot" then the entity name of the arrow is required
'shoot_interval' the minimum shoot interval