Another way would be to assign a custom value to each unit. You can store a real number in any of the values, and I believe they range from -524 288 to 524 288 in increments of 1/4096.
So it would be something like
real x = -524 288.0
Unit is Created
x += 1/4096
Set (Last Created Unit) Custom Value 0 to (x)
myProbe1 = x
With a range of 32 bits, you can assign unique Ids to all your units and never worry about running out.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Another way would be to assign a custom value to each unit. You can store a real number in any of the values, and I believe they range from -524 288 to 524 288 in increments of 1/4096.
So it would be something like
real x = -524 288.0
Unit is Created x += 1/4096 Set (Last Created Unit) Custom Value 0 to (x) myProbe1 = x
With a range of 32 bits, you can assign unique Ids to all your units and never worry about running out.