Re: No damage from terrain collision.
Code:
function Create(self)
self.hptrack = self.Health
self.damdiv = 999999999
end
function Update(self)
if self.Health ~= self.hptrack then
self.Health = math.ceil(self.Health +( self.hptrack * (self.damdiv - 99999999999999) ))/self.damdiv)
self.hptrack = self.Health
end
end
Does nothing.
EDIT: missing a parenthesis... retesting.
It works!
Thank you so much!