GetUnitMen

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

GetUnitMen

Post 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?
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: GetUnitMen

Post 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
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: GetUnitMen

Post by enric »

If you use the Search in Files option in Notepad++
:D We exist, and are on MacOS.
rf900
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 339
Joined: Fri May 04, 2012 6:59 am

Re: GetUnitMen

Post 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.
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: GetUnitMen

Post 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
Post Reply

Return to “Battle Academy : Modders Corner ”