Jump to content

CreateRadarArea - sizeX, sizeY


BriGhtx3

Recommended Posts

Posted

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)...

Currently working on gamemodes :

  • Reallife Script 70%
  • Breakout Script 10%
Posted

Try not using math.abs.

areaID[i] = createRadarArea ( x, y, x - x2, y - y2, 0, 0, 0, 0 ) 

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

Posted

Second guy who post when he solved the problem LOL

EPT Team Server Development: 0%

Learning C++ | C++ is amazing xD

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...