1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

add damage_radius and texture to mobs:boom()

This commit is contained in:
tenplus1
2022-09-22 08:04:58 +01:00
parent 2935d1ee5d
commit b4a8ce71c6
2 changed files with 14 additions and 31 deletions

View File

@ -526,10 +526,12 @@ Explosion Function
mobs:explosion(pos, radius) -- DEPRECATED!!! use mobs:boom() instead
mobs:boom(self, pos, radius)
mobs:boom(self, pos, radius, damage_radius, texture)
'self' mob entity
'pos' centre position of explosion
'radius' radius of explosion (typically set to 3)
'damage_radius' radius of damage around explosion
'texture' particle texture during explosion, defaults to "tnt_smoke.png"
This function generates an explosion which removes nodes in a specific radius
and damages any entity caught inside the blast radius. Protection will limit