Page 1 of 1

Deploy area LOS

Posted: Thu Dec 04, 2014 10:12 am
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.

Re: Deploy area LOS

Posted: Thu Dec 04, 2014 2:33 pm
by enric
Don't worry, I remenbered the procedure.

Re: Deploy area LOS

Posted: Thu Dec 04, 2014 11:41 pm
by jcb989
enric wrote:Don't worry, I remenbered the procedure.
Please post the answer? =)

Re: Deploy area LOS

Posted: Fri Dec 05, 2014 8:40 am
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.

Re: Deploy area LOS

Posted: Fri Dec 05, 2014 5:40 pm
by Granfali
I used it in my three MP scenarios.

viewtopic.php?f=313&t=52737

Re: Deploy area LOS

Posted: Sat Dec 06, 2014 12:44 pm
by jcb989
Thanks guys