my computer is too bad to play graal, and i wanted to make something, so i thought i would try a flute.
PHP Code:
function onPlayerEnters()
{
setimg( "test_flute.png" );
}
function onWeaponFired()
{
while(!this.keydown(6))
{
for(this.k = 0; this.k <4; this.k++)
{
if(keydown(this.k))
{
setani("test_flute","")
play("test_flute_"@this.k@".wav")
}
}
}
}