hogansheroes

Can't Build Here

5 posts in this topic

Hey guys, as i know there is a script out there, so just say if you build in someones territory the message comes up and say you are too close to enemy territory, but i dont want this.

What im after is if you build say close to a city thats when the message will say you are too close to enemy territory

So im after the script that stops you from building in areas that you list to be blacklisted from building close too.

I know its here on the forums somewhere but not sure where.

Thanks All

Share this post


Link to post
Share on other sites

There probably is a script/mod that can do this but the easiest method is to add markers in the mission.sqm like the one below.

Spoiler

class Item0
        {
            dataType="Marker";
            position[]={9172.5098,0,11415.1};
            name="ExileMarker0";
            markerType="ELLIPSE";
            type="ExileNonConstructionZone";
            colorName="ColorBlack";
            alpha=0;
            fillName="Border";
            a=1000;
            b=1000;
            drawBorder=1;
            id=1;
            atlOffset=-108.35082;
        };

 

Edited by MetalHead
  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
23 minutes ago, MetalHead said:

There probably is a script/mod that can do this but the easiest method is to add markers in the mission.sqm like the one below.

  Hide contents

class Item0
        {
            dataType="Marker";
            position[]={9172.5098,0,11415.1};
            name="ExileMarker0";
            markerType="ELLIPSE";
            type="ExileNonConstructionZone";
            colorName="ColorBlack";
            alpha=0;
            fillName="Border";
            a=1000;
            b=1000;
            drawBorder=1;
            id=1;
            atlOffset=-108.35082;
        };

 

That will do perfect, Thanks MetalHead.

Just to make sure on where to add this in the mission.sqm would it be with the trader markers and spawn zone markers, Id say.

 

Edited by hogansheroes

Share this post


Link to post
Share on other sites
2 hours ago, hogansheroes said:

That will do perfect, Thanks MetalHead.

Just to make sure on where to add this in the mission.sqm would it be with the trader markers and spawn zone markers, Id say.

 

Yes. Add them at the bottom of the list. Be sure to add any ID/class Item numbers in sequence and be sure to update the class Entities items=??; to the correct amount near the beginning of the mission.sqm.

Edited by MetalHead

Share this post


Link to post
Share on other sites
5 hours ago, MetalHead said:

Yes. Add them at the bottom of the list. Be sure to add any ID/class Item numbers in sequence and be sure to update the class Entities items=??; to the correct amount near the beginning of the mission.sqm.

thought so,

Cheers man for that info

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.