HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Changing integer into 'formatted' intege

08-15-2005, 10:41 PM#1
EdwardSwolenToe
How would i go about converting 1211117639 into 'H00G' or any other proper integer into the unittype integer?
08-18-2005, 10:17 AM#2
Zoxc
1211117639 is equal 'H00G', you can use integers as unittypes, not in GUI. But if u wanted to convert 1211117639 to the string "H00G"... then I don't know
08-19-2005, 05:50 AM#3
EdwardSwolenToe
I have the number 1211117639, and many more that equal a 'unittype', and i need some way of converting it into the hex integer so it is compattable with the create unit.
08-19-2005, 10:13 AM#4
Anitarf
They are equal, thus they are both compatible, you can use 1211117639 in a CreateUnit() function.

How did you get unit types in this format anyway? If you press ctrl+D in the object editor you can see unit IDs in a 'H00G' format.
08-19-2005, 11:56 PM#5
EdwardSwolenToe
It doesnt work for me, and i dont know why.

I2S doesnt store 'H00G' for some reason, it stores 1211117639.