PDA

View Full Version : Get Nearest (Z coordinate) object


Banditukas
15/02/2015, 06:19 PM
Hi,

Player can edit object. I want that object go down to the nearest object or on ground, for ex if player edit object and makes him coordinate in air.

JoaoPedro
15/02/2015, 06:38 PM
I think it's exactly what you're looking for: http://wiki.sa-mp.com/wiki/SetPlayerPosFindZ

Banditukas
15/02/2015, 07:18 PM
It's for player i need for object.

JoaoPedro
15/02/2015, 07:47 PM
http://forum.sa-mp.com/showthread.php?t=275492

Banditukas
15/02/2015, 07:53 PM
Can show me how it look there?

JoaoPedro
16/02/2015, 01:51 PM
native MapAndreas_FindZ_For2DCoord(Float:X, Float:Y, &Float:Z); // return highest Z point (ground level) for the provided X,Y co-ordinate.


http://forum.sa-mp.com/showthread.php?t=120013

Just read it.