Hi I have got a panel which should point onto an entity in my map (showing where the next quest begins). This entity is marked like this:
ENTITY* MyTarget;
action SetMyTarget() {
MyTarget = my;
}
Now I want to change the angle of a panel to point onto this target. Trying this wasn't a success:
Zeiger_panel.center_x = Zeiger_panel.size_x * 0.5;
Zeiger_panel.center_y = Zeiger_panel.size_y * 0.5;
while(1) {
while (MyTarget == null) {wait(1); beep;};
vec_set(temp,myTarget);
vec_sub(temp,player);
vec_to_angle(Zeiger_panel.angle,temp);
wait(1);
}
}
The panels angle didn't change at all

Anybody knows why?