Many things in the API have the parameter index or unit_number. Can i generate my own index or unit_number, to make my objects unique? Or do i have to track this by myself?
Re: Unique IDs
Posted: Wed Jul 03, 2019 1:50 am
by DaveMcW
You have to track it yourself.
I recommend storing the current max id in global.max_id, and the individual ids in global.entity_ids[entity.unit_number].