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

added new line_of_sight that uses raycasting when mt5.0 is found (thanks Astrobe)

This commit is contained in:
TenPlus1
2019-05-08 16:14:49 +01:00
parent ddbd403285
commit 392974e835
3 changed files with 132 additions and 91 deletions

View File

@ -576,7 +576,7 @@ Certain variables need to be set before using the above functions:
'self.driver_scale' sets driver scale for mobs larger than {x=1, y=1}
mobs:line_of_sight(self, pos1, pos2, stepsize)
mobs:line_of_sight(self, pos1, pos2, stepsize) [DEPRECATED]
This function is for use within the mobs definition for special use cases and
returns true if a mob can see the player or victim.
@ -586,6 +586,10 @@ returns true if a mob can see the player or victim.
'pos2' position of vistim or player
'stepsize' usually set to 1
Use this instead:
mob_class:line_of_sight(pos1, pos2, stepsize)
External Settings for "minetest.conf"
------------------------------------