I found out grin

Quote:
if (my.movement_state == 1)
{
pXent_setbodyflag (my, NX_BF_DISABLE_GRAVITY | NX_BF_FROZEN_ROLL | NX_BF_FROZEN_TILT | NX_BF_FROZEN_ROT,1);
}


Quote:
if (my.movement_state == 0)
{
pXent_setbodyflag (my, NX_BF_DISABLE_GRAVITY | NX_BF_FROZEN_ROLL | NX_BF_FROZEN_TILT | NX_BF_FROZEN_ROT,0);

pXent_setbodyflag(me, NX_BF_FROZEN_ROLL | NX_BF_FROZEN_TILT, 1);
}


You can reset the flags by setting 0 instead of 1 at the end of the function cool