Detecting Z coordinate
#1

Hello everybody,
So, the problem is, I've been trying to do this a long time ago, but still can't find a proper way to do it.
I have a custom map on the ocean (islands), and most of the objects are SA:MP objects (for example, volcano and islandbase).
I need to find Z coordinate for given X and Y.
I tried using ColAndreas plugin, but it does not work with SA:MP objects.
I tried using SetPlayerPosFindZ, but it does not work with SA:MP objects either.
Is it even possible to make it? Please give your suggestions.
Thanks for replies.
Reply
#2

Do you tried this?
https://sampforum.blast.hk/showthread.php?tid=275492
Reply
#3

Quote:
Originally Posted by MarvinPWN
Посмотреть сообщение
It does not work with custom maps, only GTA:SA map, but you can create your own heightmap with MapAndreas, but it requires to know Z coordinate, which I'm trying to get somehow
Reply
#4

The basic question is, for what do you need the Z-coordinate?
Reply
#5

Maybe you want to know , Z coords right?
If yes!

This is the system!

CreateObject(X, Y, Z, RX, RY, RZ, blah blah )

If you want to know InGame, then use this FS
Reply
#6

ColAndreas!
https://sampforum.blast.hk/showthread.php?tid=560218
It works with custom maps and it's 3D, it's exactly what you need.
Reply
#7

Quote:
Originally Posted by Crayder
Посмотреть сообщение
ColAndreas!
https://sampforum.blast.hk/showthread.php?tid=560218
It works with custom maps and it's 3D, it's exactly what you need.
No, dude, I wrote a comment and you replied to it
Quote:

Will this ever support SA:MP objects? It doesn't seem to work with not GTA:SA objects


Right now there is a bug in the wizards code that causes the SA-MP objects to not be handled. Pottus and Chris are both through with the project and neither will be attempting to fix it, but it'd be real nice if someone else could step up and try.

Reply
#8

Quote:
Originally Posted by zaibaslr2
Посмотреть сообщение
No, dude, I wrote a comment and you replied to it
Then your best option is getting every coordinate you can and creating a heightmap for MapAndreas. Though, MapAndreas doesn't support coordinates outside of the SA boundaries; an island that is off of the main map would crash MapAndreas.
Reply
#9

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Then your best option is getting every coordinate you can and creating a heightmap for MapAndreas. Though, MapAndreas doesn't support coordinates outside of the SA boundaries; an island that is off of the main map would crash MapAndreas.
I did not know that, I guess rest in peace heightmap
Reply
#10

Dude...for what exactly do you need the height?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)