IsXYZinAir
#4

So your question is, will your object fit in an area?

Gammix's solution is not the solution then. His is for checking if a point is above the ground.

What you need to use is CA_ContactTest!
pawn Код:
native CA_ContactTest(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz);
You simply just give it the model you want to test, the position you want to test, and the rotation of the object you want to test. Then the function will return true if the object collided any other object in San Andreas, including your custom objects. If it returns false then the model will fit in that location with that rotation!

And yes, of course ColAndreas does support custom maps.

https://sampforum.blast.hk/showthread.php?tid=586068
Reply


Messages In This Thread
IsXYZinAir - by ScIrUsna - 26.04.2016, 04:50
Re: IsXYZinAir - by Gammix - 26.04.2016, 05:00
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 05:07
Re: IsXYZinAir - by Crayder - 26.04.2016, 05:08
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 05:23
Re: IsXYZinAir - by Crayder - 26.04.2016, 05:28
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 05:29
Re: IsXYZinAir - by Crayder - 26.04.2016, 05:34
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 06:04
Re: IsXYZinAir - by ScIrUsna - 26.04.2016, 06:31

Forum Jump:


Users browsing this thread: 1 Guest(s)