Havin trouble with SetWorldBounds
#1

i have tried so much, can somebody give me an exaple of how to use my coordinates to setworld bounds

AddPlayerClass(287,2617.7800,-2331.5286,2.4816,138.4333,0,0,0,0,0,0); // back northwest
AddPlayerClass(287,2617.9314,-2249.4788,2.4816,27.5602,0,0,0,0,0,0); // front northwest
AddPlayerClass(287,2763.3987,-2249.3406,2.4816,339.6197,0,0,0,0,0,0); // front north east
AddPlayerClass(287,2763.4219,-2330.1375,2.4816,238.0988,0,0,0,0,0,0); // back north east

The front of the arena is facing north, so the back northwest is the bottom left, get what im sayin?

hope you guys can help thanx
Reply
#2

When facing north, then min coordinates are southwest and max coordinates are northeast.

You need to save only 2 points.
Reply
#3

agreed: the boudary is set by giving 2 spots: the south-west and the north-east, like:
Код:
SetPlayerWorldBounds(playerid, 2615.0, -2330.0, 2765.0, -2250.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)