Code:
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);
  }
}


just a basic if you use bones..

Last edited by Espér; 06/10/09 13:02.

Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<