Page 1 of 1

GetUnitMen

Posted: Mon Oct 01, 2012 3:02 pm
by enric
left = GetUnitMen(id) ; returns the men in the unit

But I see that many scripts use:

left = MenLeftInUnit(unit) ;

Which is the difference?
and
Where MenLeftInUnit are defined?

Re: GetUnitMen

Posted: Tue Oct 02, 2012 10:29 pm
by pipfromslitherine
If you use the Search in Files option in Notepad++ it will be much easier to find helper function definitions etc (it's what I do!). MenLeftInUnit is in functions.bsf I believe.

Cheers

Pip

Re: GetUnitMen

Posted: Wed Oct 03, 2012 6:59 am
by enric
If you use the Search in Files option in Notepad++
:D We exist, and are on MacOS.

Re: GetUnitMen

Posted: Wed Oct 03, 2012 1:44 pm
by rf900
Actually it is in tools.bsf

From what I remember, GetUnitMen returned the max number of men of the squad. While MenLeftInUnit returned the current men alive in the squad.

Re: GetUnitMen

Posted: Wed Oct 03, 2012 3:11 pm
by pipfromslitherine
Heh - as Notepad++ is open source I assumed there was a Mac version. If not, then I would be shocked if there isn't a programmer-focused text editor which could provide the same core features (the most important ones for me are syntax highlighting and find-in-files).

Cheers

Pip