Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

[Query] MoveObject and MapAndreas

$
0
0
I want to move this object from my position in the air to the height Z of the ground, using MapAndreas, effectively the object begins to fall correctly at the established speed but crosses the ground until reaching the coordinate 0.0, that is, it does not detect the ground (I am using the latest version of MapAndreas)

Code:

new Float:x, Float:y, Float:z;
                    GetPlayerPos(playerid, x, y, z);
                    Example = CreateObject(2935, x, y, z, 0.0, 0.0, 0.0);
                          MapAndreas_FindZ_For2DCoord(x, y, z);
                        MoveObject(Example, x, y, z, 10.0);


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>