diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-03-28 22:02:52 -0400 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-03-28 22:02:52 -0400 |
| commit | c6d81a837ba5bb46246ca6703f539e69a18b8216 (patch) | |
| tree | 510bb8d0b15165dbf1737f9a860d19d7750734f2 /gamemode/npcsystem/npcs/antlion1.lua | |
| parent | fe897eaf8d8be4cfdc4e2c4e90ed5c775de0c291 (diff) | |
| download | wintersurvival2-c6d81a837ba5bb46246ca6703f539e69a18b8216.tar.gz wintersurvival2-c6d81a837ba5bb46246ca6703f539e69a18b8216.tar.bz2 wintersurvival2-c6d81a837ba5bb46246ca6703f539e69a18b8216.zip | |
More debugging to find what's glitching ai's
Diffstat (limited to 'gamemode/npcsystem/npcs/antlion1.lua')
| -rw-r--r-- | gamemode/npcsystem/npcs/antlion1.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
