Jump to content

CreateRadarArea - sizeX, sizeY


BriGhtx3

Recommended Posts

Hey,

I try to create an area on the map so I use createRadarArea.

Now I have the positions X,Y,X2,Y2 in my MySQL table and want to create it:

uv72qcqm.png

grX = math.abs(x-x2) 
    grY = math.abs(y-y2) 
areaID[i] = createRadarArea ( x,y, grX, grY, 0, 0, 0, 0 ) 

This is how I calculate the sizeX and sizeY, but the area is created to the wrong side (x,y is right)...

Link to comment

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.
×
×
  • Create New...