Hello,
When I change “pan_earth.roll” the position of the entity
must change, but it keeps on the same position.
The position is calculated right for the first valve of
“pan_earth.roll” when I start the game; but it isn’t changing
when “pan_earth.roll”changes.
Why? There is a "while(1)".
var pan_earth[3];
var p_x;
var p_h;
var p_m;
var size_c=1;
var temp2[3];
Action set_positions(){
While(1){
p_x=74.1;
p_h=14;
p_m=51;
size_cat=1;
temp2.tilt=(pan_earth.tilt-90)+p_x;
temp2.roll=(pan_earth.roll-((360/24)*p_h))-((360/1440)*p_m);
temp2.pan=0;
temp.x=400+5*size_c;
temp.y=0;
temp.z=0;
VEC_ROTATE(temp.X,temp2.pan);
vec_set(an_entity.x,temp.x);
wait(1);}}