View unanswered posts | View active topics It is currently Wed Dec 25, 2024 5:02 pm



Reply to topic  [ 5 posts ] 
 IDs 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post IDs
Every MO has an ID (right?). Now, does that ID change? Let's say, if I buy an actor it will have an ID, but if I buy another one, will it's ID change?


Tue May 01, 2012 11:12 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: IDs
There are 255 IDs that CC will assign to every MO with collisions in the game at the present time. The ID will simply be the next available number in the list, and changes every time it is created or (correct me somebody if I am wrong) an MO with an ID below it is deleted by the engine. The ID is not MO specific.


Tue May 01, 2012 11:37 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: IDs
So, for scripting, it is better to refer to a MO rather than an ID, right?


Tue May 01, 2012 11:40 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: IDs
In order to get a pointer to a specific MO, you'll probably need to cycle through IDs to find the correct one, then you can refer to it by MO.


Tue May 01, 2012 11:45 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: IDs
Ok, thanks!


Tue May 01, 2012 11:48 pm
Profile
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.036s | 13 Queries | GZIP : Off ]