SA-MP Forums Archive
Detect Z on object - 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)
+--- Thread: Detect Z on object (/showthread.php?tid=559673)



Detect Z on object - zaibaslr2 - 24.01.2015

Hello.
I was thinking about this problem a very long time, now I realised that I can ask you guys.
Is it possible to somehow find Z coordinate of X and Y coordinates on server made objects?
For example I have a map in sea and I want to get point's Z coordinate.
I already saw MapAndreas plugin but I'm not sure you can use it on server objects.
Thanks for answers.


Re: Detect Z on object - Anuris - 24.01.2015

https://sampwiki.blast.hk/wiki/GetObjectPos


Re: Detect Z on object - zaibaslr2 - 24.01.2015

You did not understand what I want.
I want to get Z coordinate with script like
GetZCoord(x,y);
MapAndreas plugin has it, but I think it works only with SA map.


Re: Detect Z on object - Pottus - 24.01.2015

You would need to make your own collision engine.

https://sampforum.blast.hk/showthread.php?pid=3260829#pid3260829


Re: Detect Z on object - zaibaslr2 - 24.01.2015

Quote:
Originally Posted by Pottus
Посмотреть сообщение
You would need to make your own collision engine.

https://sampforum.blast.hk/showthread.php?pid=3260829#pid3260829
Unfortunately I have no knowledge in plugin making..


Re: Detect Z on object - zaibaslr2 - 25.01.2015

Bump