Hi there,

i´ve been trying really hard to find out how to do this. But everything i tried didnt work.

I want to send coordinates from my muzzle to the target to every client. The clients then create a draline3d effect between those 2 points.

Till now i´m using a string to send the datas. Here´s my script.

This is the creation of the string which is going to be send.
Code:
if(trace_hit)
{
	if(you)
	{
		you.health -= integer(random(25))+80;
	}
	else
	{
		ent_create(einschussloch,hit.x,einschuss);
	}
		
	str_cpy(send_str, str_for_num(NULL,muendung.x));
	str_cat(send_str, ",");
	str_cat(send_str, str_for_num(NULL,muendung.y));
	str_cat(send_str, ",");
	str_cat(send_str, str_for_num(NULL,muendung.z));
	str_cat(send_str, ":");
	str_cat(send_str, str_for_num(NULL,hit.x));
	str_cat(send_str, ",");
	str_cat(send_str, str_for_num(NULL,hit.y));
	str_cat(send_str, ",");
	str_cat(send_str, str_for_num(NULL,hit.z));

	enet_clsend_event(18,send_str,0,BROADCAST);



I´m receiving this string in another function and split every value with string manipulations (str_trunc etc.)

BEcause of that the script is very big and the string is also big. So i have more traffic.

Now i really need to know cause i can´t find it out myself. How can i use the data send in ANET?

I tried it with this one.

Code:
var g_data[6];
g_data[0] = muendung.x;
g_data[1] = muendung.y;
g_data[2] = muendung.z;
g_data[3] = hit.x;
g_data[4] = hit.y;
g_data[5] = hit.z;

enet_clsend_event(18,g_data,6,BROADCAST);



But i really dont know how to receive this data now? When i´m using char and receiving it with the _chr(msg) function the values aren´t the same as send.

Please help me. I really want to finally know how this works.

Thank you very much laugh