22.07.2013, 22:42
I want to make a counter, where if you say..place an object, it gives it an id of 1, then the next one gives it an id of 2 etc etc. How is this done?
ObjectID = ObjectCount; // Assign ObjectCount to the variable saving the ID ObjectCount ++; // Increment ObjectCount by 1.
ObjectID = ObjectCount ++; // Assign ObjectCount to the variable saving the ID AND Increment ObjectCount by 1 afterwards (++ behind variable name).