hello all.

Im trying to make George's perfect AI more modular for multiple entites. Im running into problems dealing with vectors that are created inside the entity action opposed to vectors defined in skills.

action blah
{
var current_node_vec3[3];

}

Above is an example of creating vectors inside the entity. This vector works fine with:

current_node_vec3.x = nodex[path2[my.local_i]];
current_node_vec3.y = nodey[path2[my.local_i]];
current_node_vec3.z = nodez[path2[my.local_i]];

The entity will look towards the correct position using vec_to_angle.

However when I try to use skills to define vectors:

var current_node_vec4,skill8;
var current_node_vec4,skill9;
var current_node_vec4,skill10;

the following dosent work:

current_node_vec4.x = nodex[path2[my.local_i]];
current_node_vec4.y = nodey[path2[my.local_i]];
current_node_vec4.z = nodez[path2[my.local_i]];


EVERY pathfinding entity will look towards one node, giving me the feeling that the current_node_vec4 vector is being seen as a global vector, even though it is defined as a skill.

When I revert back to the vector being created inside the entity action, the entities work fine, and look at their own personal nodes in their own paths.

There are no other skills that the entity is using that would take up the same skill numbers as the defined skills.

I'm 99% sure its not a pathfinding problem.