HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Getting a Unit's Level?

01-29-2003, 08:51 PM#1
MiCroSlave
Is there a function that allows you to get at a unit's level? Not a hero's level, but a Unit's?

They all have them, but I either can't find a way to do it, or there isn't a way.


If the above cannot be done, how does point-value work? I did a quick print out of a footman & gryphons' point value, and they were both 100?
01-29-2003, 09:38 PM#2
dataangel
Point value isn't experience, it's how much the unit is worth towards your score when the game ends.

I don't think there's a way to retrieve unit level in triggers. If you need to store a value on a unit, use its flying height (if it's a ground unit) or its prop window angle (albeit I've never been able to find out what this value is really for).
01-29-2003, 10:17 PM#3
Guest
lvl = experience

i dont know the numbers, test it
01-29-2003, 11:08 PM#4
MiCroSlave
Wouldn't work. Units don't have experience points, just a level which is used to determine the exp awarded to the killer of the unit.
01-30-2003, 01:37 PM#5
Krakou
Set the point-value to the level and check the point-value.