Deploy area LOS

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

Deploy area LOS

Post by enric »

In the deployment phase, after defining an area as no deploy, I can't remember how to avoid this area be visible and deployable if are in the LOS of the fixed units in the map.

For example if I use
if((side == 0) && (IsDeploying() == 1))
{
//set area for non deployment
SetAreaLOS(16, 16, 25, 25, 0, 0) ;

}

I understand that deploy will not be allowed in this area defined, but, if some fixed units have a LOS to some of these tiles they became available for deploy.
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: Deploy area LOS

Post by enric »

Don't worry, I remenbered the procedure.
jcb989
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1423
Joined: Fri Nov 05, 2010 12:02 am
Location: Bradenton, Florida

Re: Deploy area LOS

Post by jcb989 »

enric wrote:Don't worry, I remenbered the procedure.
Please post the answer? =)
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: Deploy area LOS

Post by enric »

Well, I remembered that using the normal deploy, build in BA ,is not possible to control the areas of deployment, and remember that I had made several scrips and code, there and there, based in Merr code, in his Merr_QB_MP_US_Deploy_v1.1 and adapted to my needs.

I'll post in a couple of days the three scenarios of Stalingrad that use that system of deploy. Then you can use it.
Granfali
Slitherine
Slitherine
Posts: 1531
Joined: Mon Aug 09, 2010 9:19 am

Re: Deploy area LOS

Post by Granfali »

I used it in my three MP scenarios.

viewtopic.php?f=313&t=52737
jcb989
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1423
Joined: Fri Nov 05, 2010 12:02 am
Location: Bradenton, Florida

Re: Deploy area LOS

Post by jcb989 »

Thanks guys
Post Reply

Return to “Battle Academy 2: Modders Corner”