Jump to content
  • 0

Placing Map Markers and their positions


Vladick

Question

Hi there,

I am trying to place markers on the map that identify my bandit AI locations and am having some trouble getting the positions correct. I have added the code into my mission.sqm as seen in the spoiler. But, while the positions I have given place the markers in the right position horizontally, the vertical positions are incorrect, as seen in the screenshot. All the markers are showing up in the ocean. The positions that I am using I got by two methods. First I used Infistar to copy the position to the chat. When those didn't work, I got the positions from the database in Character Data. Does anyone know what I might be doing wrong here?

Thanks for your help!

Spoiler

class Item20
        {
            position[]={3891.94,7886.5,0.001};
            name="BanditCity";
            text="Bandit City";
            type="mil_circle";
            colorName="ColorRed";
        };
        class Item21
        {
            position[]={13699.2,2937.35,0.001};
            name="BanditStronghold";
            text="Bandit Stronghold";
            type="mil_circle";
            colorName="ColorRed";
        };
        class Item22
        {
            position[]={6881.66,11461.4,0.001};
            name="BanditCastle";
            text="Bandit Castle";
            type="mil_circle";
            colorName="ColorRed";
        };

 

20180519125742_1.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

@Vladick

SQM files switching the z-coordinate with the y-coordinate so it must be:

class Item20
        {
            position[]={3891.94,0.001,7886.5};
            name="BanditCity";
            text="Bandit City";
            type="mil_circle";
            colorName="ColorRed";
        };
        class Item21
        {
            position[]={13699.2,0.001,2937.35};
            name="BanditStronghold";
            text="Bandit Stronghold";
            type="mil_circle";
            colorName="ColorRed";
        };
        class Item22
        {
            position[]={6881.66,0.001,11461.4};
            name="BanditCastle";
            text="Bandit Castle";
            type="mil_circle";
            colorName="ColorRed";
        }; 

 

Link to comment
Share on other sites

  • 0
12 minutes ago, A Man said:

@Vladick

SQM files switching the z-coordinate with the y-coordinate so it must be:


class Item20
        {
            position[]={3891.94,0.001,7886.5};
            name="BanditCity";
            text="Bandit City";
            type="mil_circle";
            colorName="ColorRed";
        };
        class Item21
        {
            position[]={13699.2,0.001,2937.35};
            name="BanditStronghold";
            text="Bandit Stronghold";
            type="mil_circle";
            colorName="ColorRed";
        };
        class Item22
        {
            position[]={6881.66,0.001,11461.4};
            name="BanditCastle";
            text="Bandit Castle";
            type="mil_circle";
            colorName="ColorRed";
        }; 

 

Thank you so much! All working now!

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...