I know I'm missing something in here to make it a toggle, not hold to play.
function dentVehicle::onTrigger(%this, %obj, %num, %cli, %wha)
{
if(%obj.playing $= 1)
{
// plays a short, quiet sound in the same slot to stop the music
%obj.PlayAudio(1,stopSound);
%obj.playing = 0;
}
else
{
%obj.PlayAudio(1,musicSound);
%obj.playing = 1;
}
}
And armor:onTrigger makes the player, no matter where it is, play the music when clicking.
Help.Don't call me a noob. I'm new at this and I need help