Data Realms Fan Forums
http://45.55.195.193/

Lua not detecting TDExplosives
http://45.55.195.193/viewtopic.php?f=73&t=16277
Page 1 of 1

Author:  Shook [ Wed Aug 19, 2009 3:36 pm ]
Post subject:  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?

Author:  piipu [ Wed Aug 19, 2009 4:51 pm ]
Post subject:  Re: Lua not detecting TDExplosives

MovableMan.Items

Author:  Shook [ Wed Aug 19, 2009 5:06 pm ]
Post subject:  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.

Author:  piipu [ Wed Aug 19, 2009 7:42 pm ]
Post subject:  Re: Lua not detecting TDExplosives

You need to have two for loops, one for particles and one for items.

Author:  Shook [ Wed Aug 19, 2009 7:48 pm ]
Post subject:  Re: Lua not detecting TDExplosives

Ah, i see. Thanks. Problem solved.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/