Greetings,
my problem is already solved, but i have absolutely no idea why it works, and that's why i ask
(i know this is a 'lil bit 'reverse' compared to normal questions...
)
The non working code:
VECTOR* target = vector(mouse_cursor.x,mouse_cursor.y,800);
The working code
VECTOR* target = vector(0,0,0);
target.x = mouse_cursor.x;
target.y = mouse_cursor.y;
target.z = 800;
"Target" is pretty self explaining, i think - it is later computed into an angle for a projectile to fly where
the player has pointed to with the mouse.
(using vec_diff and then vec_to_angle)