Having armor take losses like infantry (i.e. one at a time)

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
VR_Nocturne
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 62
Joined: Thu Aug 04, 2011 12:51 am

Having armor take losses like infantry (i.e. one at a time)

Post by VR_Nocturne »

Now that I have vehicle squads with 2 members instead of one, I'd like to know if it's possible to have them not all die at once as if it was just the stock 1 member "squads".

You know, how infantry works - where sometimes you might kill one or two men, but not the whole squad. Even in a 2-man squad, you might kill just one man.

Is this possible? Do I need to do something in the squads.csv?
pipfromslitherine
Site Admin
Site Admin
Posts: 9886
Joined: Wed Mar 23, 2005 10:35 pm

Re: Having armor take losses like infantry (i.e. one at a ti

Post by pipfromslitherine »

It's all to do with how you kill them. If you look at the HE scripts they kill the men off using a bit mask to define which men are killed. The current AP scripting assumes all armour has only a single man, so you would need to do a custom version of this that knows that armour can come in >1 units.

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy 2: Modders Corner”