Page 1 of 1

GetAttrib to check promotion status?

Posted: Sun Feb 01, 2015 12:21 pm
by GottaLove88s
Hi guys,

Is there a GetAttrib variable that I can use to check the promotion status (eg. green, regular, veteran, elite) of a unit?

Thanks!

Re: GetAttrib to check promotion status?

Posted: Sun Feb 01, 2015 1:34 pm
by GottaLove88s
From digging around, is this GetUnitStatus(me)?

where 0 = green, 1 = regular, 2 = veteran (2 silver stripes), 3 = elite (3 gold stripes)

Re: GetAttrib to check promotion status?

Posted: Sun Feb 01, 2015 3:22 pm
by enric
//returns the status of the unit, [-1, 2]
GetUnitStatus(id);

Re: GetAttrib to check promotion status?

Posted: Sun Feb 01, 2015 4:04 pm
by GottaLove88s
enric wrote://returns the status of the unit, [-1, 2]
GetUnitStatus(id);
Thanks Enric!
Hmm, does that mean GetUnitStatus will return a range from -1 to 2?
Does it work like this then...
-1 = green
0 = regular
1 = veteran (2 silver stripes)
2 = elite (3 gold stripes)

Re: GetAttrib to check promotion status?

Posted: Sun Feb 01, 2015 5:33 pm
by enric
yes

Re: GetAttrib to check promotion status?

Posted: Sun Feb 01, 2015 6:02 pm
by GottaLove88s
Gracias Enric! :D