Page 1 of 1

manCount

Posted: Fri Aug 15, 2014 7:06 am
by enric
In the list of my weaknesses and shortages is to try to understand, and BA allow me to practice.
For example:

There is a function in BA that return the original men in a unit (if I understand well):
GetUnitMen(id)

But there is also another that do the exactly the same, and both need the same parameter: the unit id.
GetBaseAttrib (id, "manCount")

is there a purpose, or any other thing I'm missing?

Re: manCount

Posted: Fri Aug 15, 2014 3:38 pm
by pipfromslitherine
One is simply a shortcut for the other. That said, it is possible in the code (though not sure if it ever happens) to create a unit with a number of men different to the squads definition, so using GetUnitMen will always be correct, where the attrib version could in theory be wrong :)

Cheers

Pip