16.01.2016, 23:37
You're mixing up ModelID with ObjectID...
ObjectID is the ID the server gives the object so that it can be found and tracked by the script easier.
That is what you are ending up returning, not what you think it is...
To highlight this more, save the object, and create the next...
I'll bet you, it now saves "3".
ObjectID is the ID the server gives the object so that it can be found and tracked by the script easier.
That is what you are ending up returning, not what you think it is...
To highlight this more, save the object, and create the next...
I'll bet you, it now saves "3".