Page 1 of 1
Capturing enemy units?
Posted: Thu May 30, 2013 2:28 pm
by GottaLove88s
How does BA track which team a unit belongs to?
For a scenario I'm working on, I'd like to make it possible for infantry units to capture certain types of enemy units.
These new 'capture' attacks must be made from an adjacent square, like assaults. BA would then run the same 'assault' code to determine whether the attack was successful.
However, if the 'capture' is successful, the attacking infantry survives and the captured unit (for example a 251/1, a truck or an ATG) becomes reflagged to the same team as the attacker.
Is this possible?
Re: Capturing enemy units?
Posted: Thu May 30, 2013 2:43 pm
by pipfromslitherine
By team, I assume you mean side? There isn't any way to currently change the side of a unit. Other mods have handled it by destroying and removing the unit and replacing it with a new unit on the 'correct' side.
Cheers
Pip
Re: Capturing enemy units?
Posted: Thu May 30, 2013 2:48 pm
by GottaLove88s
pipfromslitherine wrote:By team, I assume you mean side? There isn't any way to currently change the side of a unit. Other mods have handled it by destroying and removing the unit and replacing it with a new unit on the 'correct' side.
Cheers
Pip
Thanks Pip, That approach sounds effective. Can you recommend a scenario to examine, to investigate their code?
Re: Capturing enemy units?
Posted: Thu May 30, 2013 2:56 pm
by pipfromslitherine
Sorry, can't recall off the top of my head. It's not very common. I just recall a discussion on the forums on how to do it
Cheers
Pip
Re: Capturing enemy units?
Posted: Thu May 30, 2013 3:15 pm
by Richcat
I remember Merr doing something with troop units
Capture for his Rescue the prisoner mod
viewtopic.php?f=105&t=19349z that might be of help and Unit switching sides
viewtopic.php?f=104&t=19309
Re: Capturing enemy units?
Posted: Thu May 30, 2013 4:01 pm
by GottaLove88s
Thanks Richcat! That's super helpful...
With the Dieppe v1.03 fix/upgrade out today, I'm 'grounded' on modding/designing for a while...
But as soon as upcoming challenges are survived, I'd like to try tagging your code onto Dieppe v1.04... to permit Allied raiders to capture German trucks and 251s...
Might help them to get to those inland VP flags...
PS. How's your well deserved holiday?... Must be very moving... Would love to see your photos...
Re: Capturing enemy units?
Posted: Fri May 31, 2013 7:21 am
by Ranger
awesome... (but don't get in trouble with the wife).
Re: Capturing enemy units?
Posted: Mon Jun 03, 2013 9:55 am
by GottaLove88s
Is the Pope a Catholic? Do bears etc...
