works like a charm, but i have one final question (i hope laugh
I use this function to attach the weapon entitys to the turretentity

Code:
void add_weapon_to_bearer(WEAPON* w,vertex)
{
	vec_for_vertex(my._hinge_pos,me,vertex);
	w.w_me = ent_create(w.w_gun_model,my._hinge_pos,w.w_gun_func);
	w.w_me._stat_pointer = w;
}

w_me is an entitypointer to the weaponmodel


And use it this way
Code:
for(i=0;i<t.t_gun_amount;i++)
	{
		// Aufhängepunkt
		my.skill[4+i]	= (t.t_hinge)[i];
		// Waffebefestigen
		add_weapon_to_bearer((t.t_guns)[i],my.skill[4+i]);
	}



it compiles without error but the attaching function crashes when first called