HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

unittype variable

06-13-2008, 12:26 PM#1
laikh
will a unittype leak?
06-13-2008, 01:01 PM#2
Captain Griffen
Wrong

You don't use the unittype handle type. Ever. Making it a mute point.



EDIT: Vex's right.
06-13-2008, 01:19 PM#3
Vexorian
Quote:
Originally Posted by Captain Griffen
You don't use the unittype handle type. Ever. Making it a mute point.
why?

It is good in systems to require unittype stuff to specify special targetting rules, for example.
--
No, fake handles don't leak. A fake handle is one of those that in common.j are declared using ConvertHANDLETYPENAME( somenumber)
06-13-2008, 01:36 PM#4
Captain Griffen
Quote:
Originally Posted by Vexorian
why?

It is good in systems to require unittype stuff to specify special targetting rules, for example.

Quite so...I haven't actually coded anything in ages, I think my mind presumed unittype was some weird handle (like the ability handle type, which you actually never use) for unit types (which, as a name, would make a whole lot more sense).
06-13-2008, 09:42 PM#5
laikh
hi thanx 4 the answer

but i guess theres an easy way around since there is a simple one to one correspondence between unittypes and integer
06-14-2008, 08:24 PM#6
Pyrogasm
Griffo, the phrase is "Moot point", just for reference.