View unanswered posts | View active topics It is currently Sat Apr 27, 2024 12:03 pm



Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
 No damage from terrain collision. 
Author Message
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: No damage from terrain collision.
Again, appears to do nothing.
I set all the variables to huge amounts and negative amounts, nothing changes.


Fri Jul 10, 2009 2:37 am
Profile WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: No damage from terrain collision.
Uhh, sure it's running. I have it on my lua test actor, and it works.


Fri Jul 10, 2009 3:08 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post 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!


Fri Jul 10, 2009 3:17 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 18 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.058s | 15 Queries | GZIP : Off ]