i used to use GS when A6 was current...
now im trying to switch my code to Lite-C,
im having a slight prob on how to define a movement var..
'move_vec'.
i think it just the way its defined, here it the code and error..
using old engine...
DEFINE move_vec_x,skill98;
DEFINE move_vec_y,skill99;
DEFINE move_vec_z,skill100;
if(!my.falling == my.jumping == 0)
{
my.move_vec_x = (key_force.y) * int(my.Walk_Anm_Speed) * time;
my.move_vec_y = (key_comma - key_period) * int(my.Strafe_Anm_Speed) * time;
}
that seemed to work...
the new code...
VECTOR move_vec;
if(!my.falling == my.jumping == 0)
{
my.move_vec[0] = (key_force.y) * int(my.Walk_Anm_Speed) * time_step;
my.move_vec[1] = (key_comma - key_period) * int(my.Strafe_Anm_Speed) * time_step;
}
minus the syntax changes... i get an error saying
"Error in 'resources\scripts\player.c' line 112: 'move_vec' : is not a member of 'ENTITY' "
i do beleive im just defining wrong. 'move_vec' is only being used inside the player function (should i define it inside the player function?). i would like to use the same variable for x,y and z. should i define as vector... var...
or angle... please help im lost i've been pouring over tut's..
it seems it can be defined many ways... just not sure of best way.
thank you