View unanswered posts | View active topics It is currently Fri Dec 27, 2024 7:35 am



Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
 Counting Particle-s 
Author Message
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1360
Location: USA
Reply with quote
Post Re: Counting Particle-s
Then can you do like "if count > whatever number you want then"?


Mon Jul 06, 2009 12:37 am
Profile
User avatar

Joined: Sun May 31, 2009 1:04 am
Posts: 308
Reply with quote
Post Re: Counting Particle-s
TheLastBanana wrote:
MOPixels and MOSParticles seem to only be returning how many scripted entities of that type there are, if I remember correctly.

Ewww...that's good to know. That wiki is open for anyone to edit, right? If so, I want to add some of this stuff to it. Would be useful for me and other people later.

@Mind - Yes, you can do that.


Mon Jul 06, 2009 1:56 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Counting Particle-s
Actually, there appear to be things for every class but attachables, in the form of <ClassName>s

Anyway, they also hold preset tables, so do a type(v) == "userdata" check, or check if the key starts with Obj.

I belive they are used internally by the engine, which passes the objects to the appropriate functions. Though interestingly enough, pointers extracted from the tables allow modifaction of variables, like if you were running it from the script.

Oh, and the preset tables appear to be read only, so no doing odd stuff.


Mon Jul 06, 2009 2:14 am
Profile
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.049s | 13 Queries | GZIP : Off ]