diff options
Diffstat (limited to 'gamemode/npcsystem/npcs/antlion3.lua')
| -rw-r--r-- | gamemode/npcsystem/npcs/antlion3.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gamemode/npcsystem/npcs/antlion3.lua b/gamemode/npcsystem/npcs/antlion3.lua index 0f09214..f5f5486 100644 --- a/gamemode/npcsystem/npcs/antlion3.lua +++ b/gamemode/npcsystem/npcs/antlion3.lua @@ -121,6 +121,7 @@ NPC.Attacks = { --Attack priority is a fucntion that takes a player, and returns an int describing it's prority to attack (higher = more important) NPC will always attack the player with the highest priority function NPC:AttackPriority(ply) + if not ply then return 0 end local plypos = ply:GetPos() local mypos = self:GetPos() if not plypos then return 0 end |
