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

add 'homing' setting to mob definition so that arrows can follow player when visible.

This commit is contained in:
tenplus1
2023-11-16 10:00:10 +00:00
parent d1f23e8ed8
commit 682d76d7b3
2 changed files with 27 additions and 2 deletions

View File

@ -148,8 +148,9 @@ functions needed for the mob to work properly which contains the following:
'dogshoot_count2_max' contains how many seconds before switching from shoot
to dogfight.
'shoot_interval' has the number of seconds between shots.
'shoot_offset' holds the y position added as to where the
'shoot_offset' holds the y position added as to where the
arrow/fireball appears on mob.
'homing' When True arrows will follow player when visible.
'specific_attack' has a table of entity names that mob can also attack
e.g. {"player", "mobs_animal:chicken"}.
'friendly_fire` when set to false, mobs will not be able to harm other