Object collisions. - 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: Object collisions. (
/showthread.php?tid=563694)
Object collisions. -
Banditukas - 16.02.2015
Hi,
For ex:
i have two objects
Код:
new objectx;
new object2;
objectx = CreateDynamicObject( ... );
object2 = CreateDynamicObject( ... );
And i want to put object2 on the nearest z coordinate (simpler explanation on other object) of object objectx. I need to know what z coordinate i will need to set of any object model on another object model.
Re: Object collisions. -
ATGOggy - 16.02.2015
Can you elaborate?
Re: Object collisions. -
Banditukas - 16.02.2015
That all black color means one object and A letters is another object in air. And how you see i need to put it on that example black object in picture.
Re: Object collisions. -
Jefff - 16.02.2015
Map Andreas plugin and
pawn Код:
new Float:Pos[3];
GetDynamicObjectPos(object2, Pos[0], Pos[1], Pos[2]);
MapAndreas_FindZ_For2DCoord(Pos[0], Pos[1], Pos[2]);
SetDynamicObjectPos(object2, Pos[0], Pos[1], Pos[2]);
Re: Object collisions. -
Banditukas - 16.02.2015
Not working...