i made this flying/hovering script, but i need help with 1 thing.
I need to turn the blocking off all objects off, and i need to turn the walking sound off.
Is there any way to accomplish this? This is the script.
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code,key)
{
if( key == "m" )
{
if(player.z == 10)
{
player.chat="max altitude reached!";
}
else
{
player.z+= 0.5;
if(player.z > 0)
{
replaceAni("walk", "idle");
}
}
}
else if( key == "n" )
{
if(player.z > 0)
{
player.z-= 0.5;
if(player.z == 0)
{
replaceAni("walk", "walk");
}
}
}
}