Code: Select all
Script "Movestop" Enter
{
int buttons;
buttons = GetPlayerInput(-1, INPUT_BUTTONS);
if (buttons & BT_FORWARD || buttons & BT_BACK || buttons & BT_MOVELEFT || buttons & BT_MOVERIGHT)
{
delay(5);
restart;
}
else
{
delay(5);
Thing_Stop(0);
}
restart;
}
Second, if I step off a cliff and stop pressing any buttons, the script will create hiccups where I stop falling repeatedly then go on. I'd like this thing to not affect Z movement at all.
Third, I'm not sure I need all those delays.