I wrote that in my enemy function as a test
var dist_player_enemy;
you=players[enet_ent_creator(enet_ent_globpointer(me))];
vec_set(player_pos.x,you.x);
vec_set(temporary.x, my.x);
dist_player_enemy=vec_dist (player_pos.x, temporary.x);
if (dist_player_enemy <= 1000) snd_play(alarm_wav, 100, 0);
I have no error, but it dosen't work!
Can you tell me what is wrong?