IsPointInArea
#1

Hi,

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;
}
And i have in variables like ex 4 vehicles position but of course that position get change:

Код:
X,Y,Z
X1,Y1,Z1
X2,Y2,Z2
X3,Y3,Z2
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
Reply
#2

what do u want?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)