diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-03-25 23:39:10 -0400 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-03-25 23:39:10 -0400 |
| commit | 7cef367ab340e39afe69f9b61203e11bfd2dce44 (patch) | |
| tree | d254b67a7ec95d58e52770bd39770ffcf2cd3247 /gamemode/npcsystem/npcs/antlion2.lua | |
| parent | 65016498e2ca0e87ad0617ecdfa0a2dce2cd1404 (diff) | |
| download | wintersurvival2-7cef367ab340e39afe69f9b61203e11bfd2dce44.tar.gz wintersurvival2-7cef367ab340e39afe69f9b61203e11bfd2dce44.tar.bz2 wintersurvival2-7cef367ab340e39afe69f9b61203e11bfd2dce44.zip | |
Updates to fences, and ai
Diffstat (limited to 'gamemode/npcsystem/npcs/antlion2.lua')
| -rw-r--r-- | gamemode/npcsystem/npcs/antlion2.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gamemode/npcsystem/npcs/antlion2.lua b/gamemode/npcsystem/npcs/antlion2.lua index 5b53b8e..28154cc 100644 --- a/gamemode/npcsystem/npcs/antlion2.lua +++ b/gamemode/npcsystem/npcs/antlion2.lua @@ -36,6 +36,12 @@ 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 + print("In antlion2, checkmele called with null self") + end + if not ply then + print("In antlion2, checkmele called with null ply") + end if(ply:GetPos():Distance(self:GetPos()) < 100) then return 20 end return -1 end |
