09.04.2016, 11:22
Hi,
I found that function:
And i have in variables like ex 4 vehicles position but of course that position get change:
how to calculate with function with math i think calculating Float: MinX, Float: MinY, Float: MinZ, Float: MaxX, Float: MaxY, Float: MaxZ, that i could put in this function
I found that function:
Код:
stock IsPointInArea(Float: X, Float: Y, Float: Z, Float: MinX, Float: MinY, Float: MinZ, Float: MaxX, Float: MaxY, Float: MaxZ) { if((MinX >= X && X >= MaxX) && (MinY >= Y && Y >= MaxY) && (MinZ >= Z && Z >= MaxZ)) { return true; } return false; }
Код:
X,Y,Z X1,Y1,Z1 X2,Y2,Z2 X3,Y3,Z2