World BOunds.
#1

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?
Reply
#2

Try this

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

Reply
#3

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
Reply
#4

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..
Reply
#5

Oh, ok. Thx for info
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)