Data Realms Fan Forums
http://forums.datarealms.com/

IDs
http://forums.datarealms.com/viewtopic.php?f=73&t=30942
Page 1 of 1

Author:  Asklar [ Tue May 01, 2012 11:12 pm ]
Post subject:  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?

Author:  Roast Veg [ Tue May 01, 2012 11:37 pm ]
Post subject:  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.

Author:  Asklar [ Tue May 01, 2012 11:40 pm ]
Post subject:  Re: IDs

So, for scripting, it is better to refer to a MO rather than an ID, right?

Author:  Roast Veg [ Tue May 01, 2012 11:45 pm ]
Post subject:  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.

Author:  Asklar [ Tue May 01, 2012 11:48 pm ]
Post subject:  Re: IDs

Ok, thanks!

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