View unanswered posts | View active topics It is currently Fri Dec 27, 2024 10:36 pm



Reply to topic  [ 5 posts ] 
 Lua not detecting TDExplosives 
Author Message
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Lua not detecting TDExplosives
Hey again, sorry for making a new thread so quickly, but ehh...

Anyways, the problem is that the Lua i'm using is not detecting TDExplosives, but it detects all other non-actor particles. I'm just using this common line:
Code:
   for particle in MovableMan.Particles do

I just wonder, seeing that "particle" obviously doesn't include TDExplosives, how am i to make it detect them?


Wed Aug 19, 2009 3:36 pm
Profile WWW
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post Re: Lua not detecting TDExplosives
MovableMan.Items


Wed Aug 19, 2009 4:51 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: Lua not detecting TDExplosives
Thanks, but i think i might not have expressed myself correctly; i want it to detect all other particles as well as TDExplosives. Is it possible to use "and" in the "for particle in..." line for this purpose (if yes, how?), or do i need to do something else? Pardon me for being a blockhead, but i'd really like to get these kinds of problems out of the way entirely.


Wed Aug 19, 2009 5:06 pm
Profile WWW
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post Re: Lua not detecting TDExplosives
You need to have two for loops, one for particles and one for items.


Wed Aug 19, 2009 7:42 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: Lua not detecting TDExplosives
Ah, i see. Thanks. Problem solved.


Wed Aug 19, 2009 7:48 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.020s | 14 Queries | GZIP : Off ]