Hi,
I tried the downloadable example and it crashes because 'pos' and 'ang' are declared as 'VECTOR*' inside the loop of 'updateNPC_both' instead of 'VECTOR'. By the rest, it works fine here.