Question
#2

Use GetDistanceBetweenPoints.

Код:
stock Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2)
{
	return VectorSize(x1-x2, y1-y2, z1-z2);
}

new Float:distance = GetDistanceBetweenPoints(x1, y1, z1, x2, y2, z2);

printf("distance: %.1f", distance);
Reply


Messages In This Thread
Question - by enzulikeS - 26.02.2018, 16:28
Re: Question - by Stuntff - 26.02.2018, 16:35
Re: Question - by enzulikeS - 26.02.2018, 16:40
Re: Question - by PepsiCola23 - 26.02.2018, 16:42
Re: Question - by enzulikeS - 26.02.2018, 16:43

Forum Jump:


Users browsing this thread: 4 Guest(s)