Oh...... i get it.....

The code I posted works fine... However, it's made for looping, which is what I thought you wanted...

Here's some code that only plays it ONCE.

Code:

sound SkelVoiceSND = <Voices.wav>; // The sound...
var SkelVoiceVol = 200; // The volume...

ACTION SkelVoice
{
my.skill1 = 200; // Distance from player...
while(my.skill1 > 0)
{
if (vec_dist(my.x, player.x) <= my.skill1)
{
ent_playsound(my, SkelVoiceSND, SkelVoiceVol);
my.skill1 = 0;
}
wait(1);
}
}


xXxGuitar511
- Programmer