Setting the number of men of a squad via script

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
rf900
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 339
Joined: Fri May 04, 2012 6:59 am

Setting the number of men of a squad via script

Post by rf900 »

I am changing the number of men of a squad using the DestroyUnit and Revive functions multiple times, but the use of mask/bit is not very clear to me. I was wondering if there is an easier way to set it to a desired number directly, something like SetMenLeftInUnit :roll:
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: Setting the number of men of a squad via script

Post by pipfromslitherine »

There isn't a function like that. I'll add it to the task list, although it will probably end up being in the update after this one now - being able to add and delete men arbitrarily might need some cleanup work to deal with any edge cases, and I am trying to nail down the last bits so we can get the current update into beta.

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”