View unanswered posts | View active topics It is currently Thu Dec 26, 2024 9:21 pm



Reply to topic  [ 3 posts ] 
 Timed Deletion 
Author Message
User avatar

Joined: Wed Feb 04, 2009 4:07 pm
Posts: 380
Location: Galacia
Reply with quote
Post Timed Deletion
Can someone make a Lua script that makes a bullet dissapear after it hits the ground?

So bullet hits ground, a little while later it dissapears.


Tue Sep 08, 2009 7:03 pm
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Reply with quote
Post Re: Timed Deletion
Well, by the time it uh hits the ground it should turn into terrain, defeating the puropse of deleting it. I'm guessing you have reasoning behind this so nvm.

However, if you wanted to do that, do something like


Code:
function Update(self)
if self:IsAtRest() == true then
self.ToDelete = true;
end


Hope this help :)


Tue Sep 08, 2009 9:53 pm
Profile
User avatar

Joined: Wed Feb 04, 2009 4:07 pm
Posts: 380
Location: Galacia
Reply with quote
Post Re: Timed Deletion
What I really want is for the bullet to be very sharp without making pixel sized tunnels in the terrain.


Wed Sep 09, 2009 4:00 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.134s | 13 Queries | GZIP : Off ]