horrid highway: fade out trains if they are taking too long

install-platforms
Maikel de Vries 2018-01-29 10:14:53 +01:00
parent 53f29ccb96
commit 8889a68127
1 changed files with 6 additions and 1 deletions

View File

@ -85,6 +85,11 @@ local FxCheckLocomotive = new Effect
Target->RemoveObject();
return FX_Execute_Kill;
}
if (time > this.time_allowed)
{
Target->FadeOut(18, true);
return FX_Execute_Kill;
}
return FX_OK;
}
};