From c6d81a837ba5bb46246ca6703f539e69a18b8216 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 28 Mar 2016 22:02:52 -0400 Subject: More debugging to find what's glitching ai's --- gamemode/npcsystem/npcs/antlion1.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gamemode/npcsystem/npcs/antlion1.lua') diff --git a/gamemode/npcsystem/npcs/antlion1.lua b/gamemode/npcsystem/npcs/antlion1.lua index 3e90e19..259f108 100644 --- a/gamemode/npcsystem/npcs/antlion1.lua +++ b/gamemode/npcsystem/npcs/antlion1.lua @@ -36,10 +36,10 @@ NPC.IdleSequences = { --Attacks should be formated as [i]={function (return int dammage) canattack(ply) = function doattack(ply)} --NPC will do the most dammage possible per attack local checkmele = function(self, ply) - if not self then + if self == nil then print("In antlion1, checkmele called with null self") end - if not ply then + if ply == nil then print("In antlion1, checkmele called with null ply") end if(ply:GetPos():Distance(self:GetPos()) < 100) then return 20 end -- cgit v1.2.3-70-g09d2