VECTOR* temp = nullvector;
VECTOR* temp_angle = nullvector;
ENTITY* bodymodel;
action body()
{
bodymodel = my;
}
action head()
{
// VECTOR* is the position vector
// ENTITY is the body-model
// STRING is the name of the bone, you set on his neck
while(1)
{
if(bodymodel != NULL)
{
vec_for_bone(temp, bodymodel, "head_connector");
ang_for_bone(temp_angle, bodymodel, "head_connector");
vec_set(my.x,temp);
vec_set(my.pan,temp_angle);
}
wait(1);
}
}