Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
i have ms paint. i pressed copy and i cant paste it to the "materials" folder. can you help me? i tried e v e r y s i n g l e w a y and i cant do it.
oh
function ENT:HaveEnemy()
if ( self:GetEnemy() and IsValid(self:GetEnemy()) ) then
if ( self:GetRangeTo(self:GetEnemy():GetPos()) > self.LoseTargetDist ) then
return self:FindEnemy()
elseif ( self:GetEnemy():IsPlayer() and !self:GetEnemy():Alive() ) then
return self:FindEnemy()
end
return true
else
return self:FindEnemy()
end
end
Compare yours and mine. You can use the ctrl + f function to help you.
ENT:HaveEnemy()
if ( self:GetEnemy() and IsValid(self:GetEnemy()) ) then
if ( self:GetRangeTo(self:GetEnemy():GetPos()) > self.LoseTargetDist ) then
return self:FindEnemy()
elseif ( self:GetEnemy():IsPlayer() and !self:GetEnemy():Alive() ) then
return self:FindEnemy()
end
return true
else
return self:FindEnemy()
end
end")
Well, that was an easy find. You have an extra ") after your last end. Just remove it and the problem should be fixed. The other parts of the code are identical.