SA-MP Forums Archive
World BOunds. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: World BOunds. (/showthread.php?tid=87281)



World BOunds. - Dreftas - 19.07.2009

Is the function SetPlayerWorldBounds have some connection with "North"(N letter on radar) ?

I have one problem.... I take player position from one place, then from other place. Then count maxX, minX, maxY, minY and set world bounds, but if "North"(n letter on radar) is not on bootom of player when i take his position, the area is messed up o_O
Here the example:


When N is on bottom of player when i take two points(red circles), i have good world boundaries zone, this example is good:



When N is on the corner of player when i take two points(red circles), i have bad world boundaries zone, this example is bad:



I tried take 4 points, but problem still the same if N is in the corner of player when i take points.

Why this happening ? How to fix this problem?


Re: World BOunds. - -Sneaky- - 19.07.2009

Try this

http://forum.sa-mp.com/index.php?topic=14702.0




Re: World BOunds. - Dreftas - 19.07.2009

I don't need that, because i have race modification made by me. Race tracks are being created in game, so i take two points in game.

More suggest please


Re: World BOunds. - -Sneaky- - 19.07.2009

Ok not sure what you mean, but I can tell you that you have to save your points like this:



If you do it any other way it wont work..


Re: World BOunds. - Dreftas - 19.07.2009

Oh, ok. Thx for info