diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-08-08 10:33:23 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-08-08 10:33:23 +0100 |
commit | dc7cdd4df0f8e31195e770e00c0a3933c1acabe2 (patch) | |
tree | 1075a7850b3765418f6df25e890ea56c928322ab /api.lua | |
parent | 477ad596703011af7eded7070e3bfb2c3bef7587 (diff) |
make mobs:line_of_sight() global
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -281,6 +281,11 @@ local line_of_sight = function(self, pos1, pos2, stepsize) return false end +-- global function +mobs:line_of_sight = function(self, pos1, pos2, stepsize) + return local line_of_sight = function(self, pos1, pos2, stepsize) +end + -- are we flying in what we are suppose to? (taikedz) local flight_check = function(self, pos_w) |