Ok, so I overcame my last problem, and I've moved onto vectors. This code is supposed to make the entity face the same way as the player and be slightly above the player using vectors. So, I made my script and placed my character in the level, then assigned the action to a model. Heres my code:
Code:
var vect_ori[3];
var vect_pos[3];
function func_mimic()
{
while(1)
{
vect_pos.x=player.x;
vect_pos.y=player.y;
vect_pos.z=player.z+30;
vect_ori.pan=player.pan;
vect_ori.tilt=player.tilt;
vect_ori.roll=player.roll;
my.x=vect_pos.x;
my.y=vect_pos.y;
my.z=vect_pos.z;
my.pan=vect_ori.pan;
my.tilt=vect_ori.tilt;
my.roll=vect_ori.roll;
}
wait(1);
}
action mimic
{
my.enable_scan=on;
my.event=func_mimic;
}