I’m trying to make this melee weapon find everything around him as enemy.
for k, v in pairs( ents.FindInSphere( self.Owner:GetPos(), 100 ) ) do
As you can see, I told him to do this only if the enemy in his range isn’t himself, yet, it keep dealing damage to the owner anyway:
[lua]if v:IsPlayer() then
v:TakeDamage( math.random(30, 50), self.Owner, self.Owner )
Isn’t there a way to make this not happen? It’s annoying and using the simple self.Owner:GetEyeTrace() is not what I need for this one.
Seems like it works now…