hmm, i remember this was easier with the old audiosystem.
all i want to do, is play an audioclip, but take care if it is playing already.
So i have:
Code: AGS
this construct doesnt work, i dont know why?
all i want to do, is play an audioclip, but take care if it is playing already.
So i have:
// ROOMSCRIPT
AudioChannel *channel;
function room_RepExec()
{
if(channel)
{
if(!channel.IsPlaying)
channel = aJB_crash_small.Play();
}
else
channel = aJB_crash_small.Play();
}
this construct doesnt work, i dont know why?